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

Legend:
Removed from v.260  
changed lines
  Added in v.261

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26