From e53694155bbeb4d3ebdc020d2f6ea06b4aa0f44d Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sat, 14 Apr 2018 11:05:54 -0800 Subject: [PATCH] Fixed syntax error --- exts/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exts/events.py b/exts/events.py index 5dc588b..e66d8f2 100644 --- a/exts/events.py +++ b/exts/events.py @@ -94,7 +94,7 @@ class bot_events(): if ctx.author != ctx.guild.me: if self.bot.con.one(f"select pg_filter from guild_config where guild_id = {ctx.guild.id}"): profane = 0 - for word in self.bot.con.one('select profane_words from guild_config where guild_id = {ctx.guild.id}'): + for word in self.bot.con.one('select profane_words from guild_config where guild_id = %(id)s', {'id':ctx.guild.id}): word = word.strip() if word in ctx.content.lower(): events_log.info(f'Found non PG word {word}')