main.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:SESTREN 作者: SirThane 项目源码 文件源码
def on_message(message):
    default_prefix = get_default_prefix()
    if not isinstance(message.channel, discord.TextChannel):
        bot.command_prefix = [default_prefix]
    else:
        guild_prefix = db.hget(f'{config}:prefix', message.guild.id)
        if guild_prefix:
            bot.command_prefix = [guild_prefix, default_prefix]
        else:
            bot.command_prefix = [default_prefix]
    await bot.process_commands(message)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号