aboutsummaryrefslogtreecommitdiff
path: root/markov
diff options
context:
space:
mode:
Diffstat (limited to 'markov')
-rw-r--r--markov/markov.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/markov/markov.py b/markov/markov.py
index 39a3da9..ba3e47b 100644
--- a/markov/markov.py
+++ b/markov/markov.py
@@ -34,6 +34,8 @@ class Markov(commands.Cog):
@commands.Cog.listener()
async def on_message_without_command(self, message):
+ if message.guild is None:
+ return
if not await self.config.guild(message.guild).use_messages():
return
if not await self.config.channel(message.channel).use_messages():