17 |
const { CLIENT_ID, GUILD_ID, TOKEN } = process.env; |
const { CLIENT_ID, GUILD_ID, TOKEN } = process.env; |
18 |
|
|
19 |
const commands = [ |
const commands = [ |
20 |
new SlashCommandBuilder().setName('about').setDescription('Show information about the bot'), |
// SETTINGS |
|
new SlashCommandBuilder().setName('test').setDescription('Test command'), |
|
|
new SlashCommandBuilder().setName('system').setDescription('Show the system status'), |
|
|
|
|
|
// ABOUT |
|
21 |
new SlashCommandBuilder().setName('help').setDescription('A short documentation about the commands') |
new SlashCommandBuilder().setName('help').setDescription('A short documentation about the commands') |
22 |
.addStringOption(option => option.setName('command').setDescription("The command")), |
.addStringOption(option => option.setName('command').setDescription("The command")), |
23 |
|
new SlashCommandBuilder().setName('about').setDescription('Show information about the bot'), |
24 |
|
new SlashCommandBuilder().setName('system').setDescription('Show the system status'), |
25 |
|
|
26 |
// INFORMATION |
// INFORMATION |
27 |
new SlashCommandBuilder().setName('stats').setDescription('Show the server statistics'), |
new SlashCommandBuilder().setName('stats').setDescription('Show the server statistics'), |
28 |
|
new SlashCommandBuilder().setName('profile').setDescription('Show someone\'s profile') |
29 |
|
.addUserOption(option => option.setName('user').setDescription('The user')), |
30 |
|
new SlashCommandBuilder().setName('avatar').setDescription('Show someone\'s avatar') |
31 |
|
.addUserOption(option => option.setName('user').setDescription('The user')), |
32 |
|
|
33 |
// AUTOMATION |
// AUTOMATION |
34 |
|
new SlashCommandBuilder().setName('ballot').setDescription('Ballot engine') |
35 |
|
.addSubcommand(subcommand => |
36 |
|
subcommand |
37 |
|
.setName('create') |
38 |
|
.setDescription('Send a ballot/poll message for collecting votes') |
39 |
|
.addStringOption(option => option.setName('content').setDescription('Message content').setRequired(true)) |
40 |
|
.addBooleanOption(option => option.setName('anonymous').setDescription('If this is set to true then the syetem won\'t show your username')) |
41 |
|
.addChannelOption(option => option.setName('channel').setDescription('The channel where the message should be sent'))) |
42 |
|
.addSubcommand(subcommand => |
43 |
|
subcommand |
44 |
|
.setName('view') |
45 |
|
.setDescription('Get information/stats about a ballot') |
46 |
|
.addIntegerOption(option => option.setName('id').setDescription('The ballot ID'))), |
47 |
|
|
48 |
new SlashCommandBuilder().setName('queues').setDescription('List all queued jobs'), |
new SlashCommandBuilder().setName('queues').setDescription('List all queued jobs'), |
49 |
|
|
50 |
new SlashCommandBuilder().setName('schedule').setDescription('Schedule a message for sending later') |
new SlashCommandBuilder().setName('schedule').setDescription('Schedule a message for sending later') |