Browse Source

Allow DM commands

main
Ave Ozkal 2 years ago
parent
commit
23b29ed483
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Robocop.py

+ 1
- 1
Robocop.py View File

@ -149,7 +149,7 @@ async def on_message(message):
if message.author.bot:
return
if message.guild.id not in config.guild_whitelist:
if (message.guild) and (message.guild.id not in config.guild_whitelist):
return
ctx = await bot.get_context(message)


Loading…
Cancel
Save