/[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 291 by rakin, Mon Jul 29 17:29:23 2024 UTC revision 383 by rakin, Mon Jul 29 17:29:54 2024 UTC
# Line 62  let commands = [ Line 62  let commands = [
62              }              }
63          ])),          ])),
64      new SlashCommandBuilder().setName('config').setDescription('View/change the system settings for this server')      new SlashCommandBuilder().setName('config').setDescription('View/change the system settings for this server')
65          .addStringOption(option => option.setName('key').setDescription('The setting key (e.g. spam_filter.enabled)').setRequired(true))          .addStringOption(option => option.setName('key').setDescription('The setting key (e.g. spam_filter.enabled)').setRequired(true).setAutocomplete(true))
66          .addStringOption(option => option.setName('value').setDescription('New value for the setting')),          .addStringOption(option => option.setName('value').setDescription('New value for the setting')),
67    
68      // INFORMATION      // INFORMATION
# Line 70  let commands = [ Line 70  let commands = [
70      new SlashCommandBuilder().setName('lookup').setDescription('Lookup something')      new SlashCommandBuilder().setName('lookup').setDescription('Lookup something')
71          .addSubcommand(subcommand => subcommand.setName("user").setDescription("User lookup")          .addSubcommand(subcommand => subcommand.setName("user").setDescription("User lookup")
72              .addUserOption(option => option.setName("user").setDescription("The user to search").setRequired(true))              .addUserOption(option => option.setName("user").setDescription("The user to search").setRequired(true))
73          )              )
74          .addSubcommand(subcommand => subcommand.setName("guild").setDescription("Server/Guild lookup")              .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))                  .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')),
# Line 96  let commands = [ Line 99  let commands = [
99              subcommand              subcommand
100                  .setName('view')                  .setName('view')
101                  .setDescription('Get information/stats about a ballot')                  .setDescription('Get information/stats about a ballot')
102                  .addIntegerOption(option => option.setName('id').setDescription('The ballot ID'))),                  .addStringOption(option => option.setName('id').setDescription('The ballot ID'))),
103                    
104      new SlashCommandBuilder().setName('embed').setDescription('Make an embed')      new SlashCommandBuilder().setName('embed').setDescription('Make an embed')
105          .addSubcommand(subcmd =>          .addSubcommand(subcmd =>
# Line 296  let commands = [ Line 299  let commands = [
299    
300      new SlashCommandBuilder().setName('shot').setDescription('Give a shot to a member')      new SlashCommandBuilder().setName('shot').setDescription('Give a shot to a member')
301          .addUserOption(option => option.setName('member').setDescription("The member").setRequired(true))          .addUserOption(option => option.setName('member').setDescription("The member").setRequired(true))
302          .addStringOption(option => option.setName('reason').setDescription("The reason for giving shot to this user")),          .addStringOption(option => option.setName('reason').setDescription("The reason for giving shot to this user"))
303            .addBooleanOption(option => option.setName('anonymous').setDescription("Prevents sending your name as the 'Doctor' of the shot")),
304    
305      new SlashCommandBuilder().setName('warn').setDescription('Warn a member')      new SlashCommandBuilder().setName('warn').setDescription('Warn a member')
306          .addUserOption(option => option.setName('member').setDescription("The member").setRequired(true))          .addUserOption(option => option.setName('member').setDescription("The member").setRequired(true))
# Line 320  let commands = [ Line 324  let commands = [
324    
325      new SlashCommandBuilder().setName('warning').setDescription('Clear, remove or view warnings')      new SlashCommandBuilder().setName('warning').setDescription('Clear, remove or view warnings')
326          .addSubcommand(subcmd => {          .addSubcommand(subcmd => {
327              return subcmd.setName('view').setDescription('View information about a warning').addNumberOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));              return subcmd.setName('view').setDescription('View information about a warning').addStringOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));
328          })          })
329          .addSubcommand(subcmd => {          .addSubcommand(subcmd => {
330              return subcmd.setName('remove').setDescription('Remove a warning').addNumberOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));              return subcmd.setName('remove').setDescription('Remove a warning').addStringOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));
331          })          })
332          .addSubcommand(subcmd => {          .addSubcommand(subcmd => {
333              return subcmd.setName('list').setDescription('List warnings for a user').addUserOption(option => option.setName('user').setDescription("The user").setRequired(true));              return subcmd.setName('list').setDescription('List warnings for a user').addUserOption(option => option.setName('user').setDescription("The user").setRequired(true));

Legend:
Removed from v.291  
changed lines
  Added in v.383

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26