discord.py - discord.py 区分两个服务器?
问题描述
嗨,我有我的机器人的命令-set_event (event code)
。如果在一台服务器上发生这种情况,则更改会随之发生在另一台服务器上。我很好奇是否有办法阻止这种情况发生。谢谢。
@commands.command()
async def set_event(self, ctx, arg):
global event_code
event_code = arg.upper()
解决方案
推荐阅读
- angular - 角度组件重新呈现,但它不应该
- package.json - 图自动完成 '$npm_execpath' 无法识别
- java - 如何修复包内包的“NoClassDefFoundError”
- html - 如何从构建的 Vue 项目中更改路径结构?
- javascript - 嵌套手风琴的分页
- angular - ejs多选推送数据
- angular - form.submit 不是一个函数 - Angular 11
- javascript - 即使在渲染组件之后,React 函数组件也会更新最新数据
- node.js - webpack - TypeError:this.lib.createConnection 不是函数
- github - 在 README.md 的 Github 列表项中正确缩进代码