Remove public facing IDs, and add a roll die
Picked up after a long while, cause spotted in my git repomaster^2
parent
1864565977
commit
05514930f4
@ -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