首页 > 解决方案 > discord.py 区分两个服务器?

问题描述

嗨,我有我的机器人的命令-set_event (event code)。如果在一台服务器上发生这种情况,则更改会随之发生在另一台服务器上。我很好奇是否有办法阻止这种情况发生。谢谢。

    @commands.command()
    async def set_event(self, ctx, arg):
        global event_code
        event_code = arg.upper()

标签: discord.py

解决方案


推荐阅读