Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const commando = require('discord.js-commando');
- class DiceRollCommand extends commando.Command {
- constructor(client) {
- super(client, {
- name: 'rolldice',
- group: 'random',
- memberName: 'rolldice',
- description: 'Roll the dice.'
- });
- }
- async run(message, args) {
- let roll = Math.floor((Math.random() * 6) + 1);
- message.reply(`You rolled a ${roll}`);
- }
- }
- module.exports = DiceRollCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement