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: 'roll',
- group: 'random',
- memberName: 'roll',
- description: 'Rolls a dice'
- });
- }
- async run(message, args) {
- var rolll = Math.floor(Math.random() * 6) + 1;
- message.channel.sendMessage("You rolled a " + roll);
- }
- }
- module.exports = DiceRollCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement