我看到节奏有这个选项,现在我想要它 我想将我的命令更改为斜线命令我需要帮助。 我尝试这样做,这很难,所以我需要帮助 这是我的主要内容:
client.once('ready', () =>{
console.log('Ferret Bot is online!');
client.user.setActivity(actvs[Math.floor(Math.random() * (actvs.length))]);
setInterval(function() {
client.user.setActivity(actvs[Math.floor(Math.random() * (actvs.length))], {type: 'LISTENING'});
//client.user.setActivity('אוהב החמוסים' , { type: 'LISTENING'}).catch(console.error);
}, 1000)
});
client.on('message', message =>{
if(!message.content.startsWith(prefix) || message.author.bot) return;
client.on('message', message =>{
if(!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = message.content.slice(prefix.length).trim().split('/ +/').shift().toLowerCase();
if(command === 'love ferret'){
client.commands.get('love ferret').execute(message, args);
}else if (command == 'love apple'){
client.commands.get('love apple').execute(message, args);
}else if (command == 'v bucks'){
client.commands.get('v bucks').execute(message, args);
}else if (command == 'command'){
client.commands.get('command').execute(message, args, Discord);
}else if (command.startsWith('avatar')){
client.commands.get('avatar').execute(message, args);
}else if (command.startsWith('clear')){
client.commands.get('clear').execute(message, args);
}else if (command.startsWith('kick')){
client.commands.get('kick').execute(message, args);
}else if (command.startsWith('ban')){
client.commands.get('ban').execute(message, args);
}else if (command.startsWith('ping')){
client.commands.get('ping').execute(message, args, Discord, client);
}else if (command == 'random game'){
client.commands.get('random game').execute(message, args, Discord);
}else if (command === 'reactionrole'){
client.commands.get('reactionrole').execute(message, args, Discord, client);
})
如果你回复它会有所帮助 谢谢