/[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 261 by rakin, Mon Jul 29 17:29:15 2024 UTC revision 291 by rakin, Mon Jul 29 17:29:23 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    
78      new SlashCommandBuilder().setName('profile').setDescription('Show someone\'s profile')      new SlashCommandBuilder().setName('profile').setDescription('Show someone\'s profile')
79          .addUserOption(option => option.setName('user').setDescription('The user')),          .addUserOption(option => option.setName('user').setDescription('The user')),
80      new SlashCommandBuilder().setName('avatar').setDescription('Show someone\'s avatar')      new SlashCommandBuilder().setName('avatar').setDescription('Show someone\'s avatar')

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26