Fixed syntax error
This commit is contained in:
parent
083640a173
commit
e53694155b
@ -94,7 +94,7 @@ class bot_events():
|
|||||||
if ctx.author != ctx.guild.me:
|
if ctx.author != ctx.guild.me:
|
||||||
if self.bot.con.one(f"select pg_filter from guild_config where guild_id = {ctx.guild.id}"):
|
if self.bot.con.one(f"select pg_filter from guild_config where guild_id = {ctx.guild.id}"):
|
||||||
profane = 0
|
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()
|
word = word.strip()
|
||||||
if word in ctx.content.lower():
|
if word in ctx.content.lower():
|
||||||
events_log.info(f'Found non PG word {word}')
|
events_log.info(f'Found non PG word {word}')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user