【发布时间】:2018-06-11 22:42:33
【问题描述】:
所以,我希望我的机器人打印出我的服务器中的成员数量。我一试就明白了:
Counter Top MTG has this amount of members: <property object at 0xb6a48e14>
我的代码是:
@client.command()
async def report():
x = server.Server.members
await client.say("`Counter Top MTG has this amount of members: {}`".format(x))
我的第二个问题:
所以,我想做一个报告方法,让用户说:
!report bob cheated in life
它会获取该信息并将其发送给我。我不知道从哪里开始。
【问题讨论】:
标签: python-3.x discord.py