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