Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. const commando = require('discord.js-commando');
  2.  
  3. class DiceRollCommand extends commando.Command {
  4. constructor(client) {
  5. super(client, {
  6. name: 'roll',
  7. group: 'random',
  8. memberName: 'roll',
  9. description: 'Rolls a dice'
  10. });
  11. }
  12.  
  13. async run(message, args) {
  14. var rolll = Math.floor(Math.random() * 6) + 1;
  15. message.channel.sendMessage("You rolled a " + roll);
  16. }
  17. }
  18.  
  19. module.exports = DiceRollCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement