Compare commits
No commits in common. 'a83c73241b98ffdc8a0750dfe9f464d4f1c63add' and '1864565977c8936a1d932e5bc2312777a8345ed2' have entirely different histories.
a83c73241b
...
1864565977
@ -1,13 +0,0 @@
|
||||
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