I'm coding my own discord bot and in a nutshell I need some help with the code. I would need my bot to pick a random response (1/10 for example) when I use a command like !roll or !dice, and once used, a user cool down of 6 days to be added (i.e the command can't be used by said user for 6 days afterwards, and would respond with the days, hours and minutes)
I'm pretty new to code, but I figured out some
const Discord = require ("discord.js")
const Bot = new Discord.Client();
const token = "my token"
Bot.login('my token');
Bot.on('message' , function (message){
if(message.content == '!roll')
var roll =(Math.floor(Math.random()*200)+1);
if (roll = 1 )
{message.reply('Wowza!');
}
else {message.reply('lol!');
}
whenever i roll, the bot displays either one of the outputs, then the other, and then spams the two till it is shut off.