I'm making a bot for my private discord servers with friends, we love Star Wars so I called it Darth Vader. I've been watching tutorials, and with this bot I've gotten pretty good but I'm stuck on a command. This command is called forcechoke
. What it does is it puts a message in chat:
Darth Vader: Forcechokes @fakeplayer for (time in seconds). Attached file (of Darth Vader choking someone) that I have in the folder with all my code.
Basically, it mutes the person for 60 seconds but then shows Darth Vader choking someone. The command: !forcechoke <@person> <time in seconds>
. I have the !forcechoke
done you'll just have to see.
const commando = require('discord.js-commando');
class ForceChokeCommand extends commando.Command
{
constructor(client)
{
super(client,{
name: 'forcechoke',
group: 'sith',
memberName: 'forcechoke',
description: 'Darth Vader will choke the person of your choice!',
args: [
{
key: 'user',
prompt: 'Who would you like me to forcechoke?',
type: 'user'
}
]
});
}
// THIS IS WHERE I NEED HELP
}
}
module.exports = ForceChokeCommand;
Also, if theres something that I need to npm install, please tell me.