当我从这一行得到一个 SyntaxError
时,我正在用 python 编写一个不和谐的货币机器人:
client = commands.Bot(command_prefix = c!)
有什么想法吗?
最佳答案
您需要使用引号将 command_prefix
参数存储在字符串中:
client = commands.Bot(command_prefix='c!')
关于python - Discord 货币机器人 SyntaxError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69326113/