Allow DM commands

This commit is contained in:
Ave Ozkal 2018-12-25 15:11:06 +03:00
parent d38b1a8065
commit 0516e6ed4a
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

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