You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
498 B
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; |