From 0516e6ed4a4f9b2c7e5f39fa05cc899faeb3ff65 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 25 Dec 2018 15:11:06 +0300 Subject: [PATCH] Allow DM commands --- Robocop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robocop.py b/Robocop.py index 9f93e89..f79ad0b 100755 --- a/Robocop.py +++ b/Robocop.py @@ -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)