/[sudobot]/trunk/deploy-commands.js
ViewVC logotype

Diff of /trunk/deploy-commands.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 254 by rakin, Mon Jul 29 17:29:13 2024 UTC revision 297 by rakin, Mon Jul 29 17:29:25 2024 UTC
# Line 23  let commands = [ Line 23  let commands = [
23      new SlashCommandBuilder().setName('help').setDescription('A short documentation about the commands')      new SlashCommandBuilder().setName('help').setDescription('A short documentation about the commands')
24          .addStringOption(option => option.setName('command').setDescription("The command")),          .addStringOption(option => option.setName('command').setDescription("The command")),
25      new SlashCommandBuilder().setName('about').setDescription('Show information about the bot'),      new SlashCommandBuilder().setName('about').setDescription('Show information about the bot'),
26        new SlashCommandBuilder().setName('eval').setDescription('Execute raw code in the runtime environment')
27            .addStringOption(option => option.setName('code').setDescription('The code to be executed').setRequired(true)),
28      new SlashCommandBuilder().setName('system').setDescription('Show the system status'),      new SlashCommandBuilder().setName('system').setDescription('Show the system status'),
29      new SlashCommandBuilder().setName('restart').setDescription('Restart the system'),      new SlashCommandBuilder().setName('restart').setDescription('Restart the system'),
30      new SlashCommandBuilder().setName('setstatus').setDescription('Set status for the bot system')      new SlashCommandBuilder().setName('setstatus').setDescription('Set status for the bot system')
# Line 65  let commands = [ Line 67  let commands = [
67    
68      // INFORMATION      // INFORMATION
69      new SlashCommandBuilder().setName('stats').setDescription('Show the server statistics'),      new SlashCommandBuilder().setName('stats').setDescription('Show the server statistics'),
70        new SlashCommandBuilder().setName('lookup').setDescription('Lookup something')
71            .addSubcommand(subcommand => subcommand.setName("user").setDescription("User lookup")
72                .addUserOption(option => option.setName("user").setDescription("The user to search").setRequired(true))
73                )
74                .addSubcommand(subcommand => subcommand.setName("guild").setDescription("Server/Guild lookup")
75                    .addStringOption(option => option.setName("guild_id").setDescription("The ID of the server/guild to lookup").setRequired(true))
76                )
77                .addSubcommand(subcommand => subcommand.setName("avatar").setDescription("Avatar lookup using Google Image Search")
78                    .addUserOption(option => option.setName("user").setDescription("The user to lookup").setRequired(true))
79                ),
80    
81      new SlashCommandBuilder().setName('profile').setDescription('Show someone\'s profile')      new SlashCommandBuilder().setName('profile').setDescription('Show someone\'s profile')
82          .addUserOption(option => option.setName('user').setDescription('The user')),          .addUserOption(option => option.setName('user').setDescription('The user')),
83      new SlashCommandBuilder().setName('avatar').setDescription('Show someone\'s avatar')      new SlashCommandBuilder().setName('avatar').setDescription('Show someone\'s avatar')
# Line 208  let commands = [ Line 221  let commands = [
221      new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status')      new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status')
222          .addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")),          .addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")),
223            
224        new SlashCommandBuilder().setName('hash').setDescription('Generate hash for a string (text) data')
225            .addStringOption(option => option.setName('content').setDescription("The content to be hashed").setRequired(true))
226            .addStringOption(option =>
227                option
228                .setName('algorithm')
229                .setDescription("Hash algorithm")
230                .setChoices(
231                    {
232                        name: 'SHA1',
233                        value: 'sha1'
234                    },
235                    {
236                        name: 'SHA256',
237                        value: 'sha256'
238                    },
239                    {
240                        name: 'SHA512',
241                        value: 'sha512'
242                    },
243                    {
244                        name: 'MD5',
245                        value: 'md5'
246                    },
247                )
248            )
249            .addStringOption(option =>
250                option
251                .setName('digest')
252                .setDescription("Digest mode")
253                .setChoices(
254                    {
255                        name: 'HEX',
256                        value: 'hex'
257                    },
258                    {
259                        name: 'Base64',
260                        value: 'base64'
261                    },
262                    {
263                        name: 'Base64 URL',
264                        value: 'base64url'
265                    },
266                )
267            ),
268        
269      new SlashCommandBuilder().setName('announce').setDescription('Announce something')      new SlashCommandBuilder().setName('announce').setDescription('Announce something')
270          .addStringOption(option => option.setName('content').setDescription("The announcemnt message content")),          .addStringOption(option => option.setName('content').setDescription("The announcemnt message content")),
271    

Legend:
Removed from v.254  
changed lines
  Added in v.297

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26