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}')