Fixed syntax error
This commit is contained in:
parent
72275a1baf
commit
17efb1fcea
@ -117,7 +117,7 @@ async def on_message(ctx):
|
||||
if ctx.channel.id in json.loads(bot.con.one(f"select allowed_channels from guild_config where guild_id = %(id)s", {'id':ctx.guild.id})):
|
||||
await bot.process_commands(ctx)
|
||||
elif ctx.channel.id == 418452585683484680:
|
||||
prefix = bot.con.one('select prefix from guild_config where guild_id = %(id)s", {'id':ctx.guild.id}))
|
||||
prefix = bot.con.one('select prefix from guild_config where guild_id = %(id)s', {'id':ctx.guild.id})
|
||||
prefix = prefix[0] if prefix else bot.default_prefix
|
||||
ctx.content = f'{prefix}{ctx.content}'
|
||||
await bot.process_commands(ctx)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user