diff --git a/dequerun.py b/dequerun.py new file mode 100644 index 0000000..394d4dc --- /dev/null +++ b/dequerun.py @@ -0,0 +1,20 @@ +import discord + +client = discord.Client() + +@client.event +async def on_message(message): + if message.content == "!run": + # Get the code from the message + code = message.content[5:] + + # Run the code + try: + result = eval(code) + except Exception as e: + result = str(e) + + # Send the result back to the user + await message.channel.send(result) + +client.run("YOUR_TOKEN")