Main.js nuke命令
if (command === 'nuke'){
client.commands.get('nuke').execute(message, args);
命令文件夹中的nuke.js文件
module.exports = {
name: 'nuke',
description: "the bot will reply nuke gif!",
execute(message, args){
if(message.member.roles.cache.has('755968860817195029'))
{
message.channel.bulkDelete("100").then(message.channel.send("NEWS HEADLINES:- **A BOMB JUST DROPPED HERE WHICH DELETED ALL THE MESSAGES (R.I.P.)**"));
(message.channel.send("https://tenor.com/view/kozhi-nuclear-bomb-gif-18586883"));
}
else { message.channel.send("It seems you dont have required permissions to do this commands!") } } }