/[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 268 by rakin, Mon Jul 29 17:29:17 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 208  let commands = [ Line 210  let commands = [
210      new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status')      new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status')
211          .addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")),          .addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")),
212            
213        new SlashCommandBuilder().setName('hash').setDescription('Generate hash for a string (text) data')
214            .addStringOption(option => option.setName('content').setDescription("The content to be hashed").setRequired(true))
215            .addStringOption(option =>
216                option
217                .setName('algorithm')
218                .setDescription("Hash algorithm")
219                .setChoices(
220                    {
221                        name: 'SHA1',
222                        value: 'sha1'
223                    },
224                    {
225                        name: 'SHA256',
226                        value: 'sha256'
227                    },
228                    {
229                        name: 'SHA512',
230                        value: 'sha512'
231                    },
232                    {
233                        name: 'MD5',
234                        value: 'md5'
235                    },
236                )
237            )
238            .addStringOption(option =>
239                option
240                .setName('digest')
241                .setDescription("Digest mode")
242                .setChoices(
243                    {
244                        name: 'HEX',
245                        value: 'hex'
246                    },
247                    {
248                        name: 'Base64',
249                        value: 'base64'
250                    },
251                    {
252                        name: 'Base64 URL',
253                        value: 'base64url'
254                    },
255                )
256            ),
257        
258      new SlashCommandBuilder().setName('announce').setDescription('Announce something')      new SlashCommandBuilder().setName('announce').setDescription('Announce something')
259          .addStringOption(option => option.setName('content').setDescription("The announcemnt message content")),          .addStringOption(option => option.setName('content').setDescription("The announcemnt message content")),
260    

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26