Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const commando = require('discord.js-commando');
  2.  
  3. class DiceRollCommand extends commando.Command {
  4.     constructor(client) {
  5.         super(client, {
  6.             name: 'rolldice',
  7.             group: 'random',
  8.             memberName: 'rolldice',
  9.             description: 'Roll the dice.'
  10.         });
  11.     }
  12.  
  13.     async run(message, args) {
  14.         let roll = Math.floor((Math.random() * 6) + 1);
  15.         message.reply(`You rolled a ${roll}`);
  16.     }
  17. }
  18.  
  19. module.exports = DiceRollCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement