fixed bug not responding to dm admin commands

This commit is contained in:
phixxy 2024-01-04 09:36:39 -08:00
parent 222f3bee59
commit e80613f583

View file

@ -1706,9 +1706,11 @@ async def on_message(ctx):
#handle non-text channels (dms, etc) #handle non-text channels (dms, etc)
print(ctx.channel.type.value) print(ctx.channel.type.value)
print(type(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 if ctx.author.bot: #this stops the bot from responding to itself
return return
elif ctx.author.id != 242018983241318410:
pass
else: else:
await ctx.channel.send("I cannot respond to you in this channel") await ctx.channel.send("I cannot respond to you in this channel")
return return