我最近使用开关盒改写了我的机器人 但是现在它不响应命令 相反,它只是坐在那儿什么都不做
以下是代码的链接:https://sourceb.in/ff321fd803
答案 0 :(得分:-1)
问题在这里
const args = msg.content.slice('2').trim().split(' ');
const command = args.shift().toLowerCase();
使用此:
const args = msg.content.split(' ').slice(1)
const command = msg.content.split(' ').shift().toLowerCase()