Compare commits
3 Commits
1864565977
...
a83c73241b
| Author | SHA1 | Date |
|---|---|---|
|
|
a83c73241b | 1 month ago |
|
|
ddef5d7825 | 1 month ago |
|
|
05514930f4 | 1 month ago |
@ -0,0 +1,13 @@
|
|||||||
|
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
data: new SlashCommandBuilder()
|
||||||
|
.setName('roll')
|
||||||
|
.setDescription('Rolls a die'),
|
||||||
|
async execute(interaction) {
|
||||||
|
let die_sides = 6;
|
||||||
|
let random_number = Math.floor(Math.random() * die_sides) + 1;
|
||||||
|
await interaction.reply(`${interaction.user.username} rolled a ${random_number}`);
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
Loading…
Reference in New Issue