From e80613f5834b87eeac8c435d7f6f71cafd41659b Mon Sep 17 00:00:00 2001 From: phixxy Date: Thu, 4 Jan 2024 09:36:39 -0800 Subject: [PATCH] fixed bug not responding to dm admin commands --- sparkytron3000.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index e164a24..5b795cb 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -1706,9 +1706,11 @@ async def on_message(ctx): #handle non-text channels (dms, etc) print(ctx.channel.type.value) print(type(ctx.channel.type.value)) - if ctx.channel.type.value != 0 and ctx.author.id != 242018983241318410: + if ctx.channel.type.value != 0: if ctx.author.bot: #this stops the bot from responding to itself return + elif ctx.author.id != 242018983241318410: + pass else: await ctx.channel.send("I cannot respond to you in this channel") return