Fixed syntax error

This commit is contained in:
Dusty.P 2018-04-14 11:05:54 -08:00
parent 083640a173
commit e53694155b

View File

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