Remchanv2/commands/games/dice_roll.js

19 lines
498 B

const {Command} = require('../../lib.js')
class diceroll extends Command{
constructor(client){
super(client, {
name: 'roll',
aliases:['diceroll'],
description: 'Rolls an icosahedral dice. (d20).'
})
}
async run(message, args){
var roll = Math.floor(Math.random()*20)+1;
message.channel.send('Face shows the number:'+ roll);
}
}
module.exports = diceroll;