From 19e745939adece5855b244d42629e9008412a7c7 Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 3 Jan 2024 08:51:26 -0800 Subject: [PATCH] temp disabled python command until i can figure out a secure way to enable it --- sparkytron3000.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index 499e1dc..ffa1c8e 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -1286,7 +1286,7 @@ async def topic(ctx, channel_topic): edit_channel_config(ctx.channel.id, "channel_topic", channel_topic) await ctx.send("Topic changed to " + channel_topic) -@bot.command( +'''@bot.command( description="Python", help="Run some python code. Imports are disabled but random is imported for you. Usage !python (codeblock)", brief="Run some python code" @@ -1327,7 +1327,7 @@ async def python(ctx): await ctx.send(error.stderr.decode('utf-8')) except Exception as error: await handle_error(error) - await ctx.send("Usage: !python (codeblock)") + await ctx.send("Usage: !python (codeblock)")''' @bot.command( @@ -1700,8 +1700,6 @@ async def on_reaction_add(reaction, user): @bot.event async def on_message(ctx): - - #log stuff logfile = "channels/logs/{0}.log".format(str(ctx.channel.id))