From 450783b7854d13e025cfa1875b70f99e86d64de5 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Fri, 20 Apr 2018 23:17:31 -0800 Subject: [PATCH] Switching to asyncpg --- exts/events.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exts/events.py b/exts/events.py index 2c98a6c..94cd785 100644 --- a/exts/events.py +++ b/exts/events.py @@ -86,8 +86,7 @@ class BotEvents: if await self.bot.db_con.fetchval("select pg_filter from guild_config where guild_id = $1", ctx.guild.id): profane = 0 for word in await self.bot.db_con.fetchval('select profane_words from guild_config ' - 'where guild_id = %(id)s', - {'id': ctx.guild.id}): + 'where guild_id = $1', ctx.guild.id): word = word.strip() if word in ctx.content.lower(): events_log.info(f'Found non PG word {word}')