【发布时间】:2021-02-24 18:36:47
【问题描述】:
我正在 discord py 上编写一个机器人。我需要通过以下用户消息分配变量,我该怎么做?
frole = # here I need to set a variable via the following message .family role MaosFamily
post = {
"_id": self.familydb.count_documents({}) + 1,
"role": frole,
"voice": None,
"boss": ctx.author.id,
"zam": None
}
self.shopdb.insert_one(post)
【问题讨论】:
标签: python bots discord.py