aboutsummaryrefslogtreecommitdiff
path: root/modules/registers.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-09 13:04:14 +0100
committerMinteck <contact@minteck.org>2022-01-09 13:04:14 +0100
commitdc65563df84d80bcc0970febef6a5f9a7759bdcb (patch)
tree683adf13430bce48c23e6928a3a2eb0b5614094a /modules/registers.js
parentad5950fb36d71b0f522ac3dab80983212cafee44 (diff)
downloadponyfind-dc65563df84d80bcc0970febef6a5f9a7759bdcb.tar.gz
ponyfind-dc65563df84d80bcc0970febef6a5f9a7759bdcb.tar.bz2
ponyfind-dc65563df84d80bcc0970febef6a5f9a7759bdcb.zip
smol update
Diffstat (limited to 'modules/registers.js')
-rw-r--r--modules/registers.js85
1 files changed, 67 insertions, 18 deletions
diff --git a/modules/registers.js b/modules/registers.js
index f99e274..a1cf4b5 100644
--- a/modules/registers.js
+++ b/modules/registers.js
@@ -10,27 +10,76 @@ module.exports = [
.setRequired(true)
),
new SlashCommandBuilder()
- .setName('stats')
- .setDescription("Gets stats about the bot"),
- new SlashCommandBuilder()
- .setName('lang')
- .setDescription("Changes the bot's language")
+ .setName('eval')
+ .setDescription("Run raw JavaScript code on the bot's server")
.addStringOption(option =>
- option.setName('locale')
- .setDescription('The selected language')
+ option.setName("code")
+ .setDescription("The JavaScript code to run")
.setRequired(true)
- .addChoice('Français', 'fr')
- .addChoice('English', 'en')
),
new SlashCommandBuilder()
- .setName('serverlang')
- .setDescription("Changes the bot's language on this server")
- .addStringOption(option =>
- option.setName('locale')
- .setDescription('The selected language')
- .setRequired(true)
- .addChoice('Français', 'fr')
- .addChoice('English', 'en')
- .addChoice('User prefered language (default)', 'off')
+ .setName('info')
+ .setDescription("Gets stats and info about the bot"),
+ new SlashCommandBuilder()
+ .setName('random')
+ .setDescription("Picks a random pony"),
+ // new SlashCommandBuilder()
+ // .setName('lang')
+ // .setDescription("Changes the bot's language")
+ // .addStringOption(option =>
+ // option.setName('locale')
+ // .setDescription('The selected language')
+ // .setRequired(true)
+ // .addChoice('Français', 'fr')
+ // .addChoice('English', 'en')
+ // ),
+ new SlashCommandBuilder()
+ .setName('config')
+ .setDescription("Configure all aspects of the bot")
+ .addSubcommand(subcommand =>
+ subcommand.setName('lang')
+ .setDescription("Changes the bot's language")
+ .addStringOption(option =>
+ option.setName('locale')
+ .setDescription('The selected language')
+ .setRequired(true)
+ .addChoice('Français', 'fr')
+ .addChoice('English', 'en')
+ )
+ )
+ .addSubcommand(subcommand =>
+ subcommand.setName('spoilers')
+ .setDescription("Enable, disable or hide spoilers in replies")
+ .addStringOption(option =>
+ option.setName('status')
+ .setDescription('Value')
+ .setRequired(true)
+ .addChoice('Always show spoilers', 'yes')
+ .addChoice('Show under spoiler tags (default)', 'hide')
+ .addChoice('Never show spoilers', 'no')
+ )
)
+ .addSubcommand(subcommand =>
+ subcommand.setName('serverlang')
+ .setDescription("Changes the bot's language on this server")
+ .addStringOption(option =>
+ option.setName('locale')
+ .setDescription('The selected language')
+ .setRequired(true)
+ .addChoice('Français', 'fr')
+ .addChoice('English', 'en')
+ .addChoice('User prefered language (default)', 'off')
+ )
+ ),
+ // new SlashCommandBuilder()
+ // .setName('serverlang')
+ // .setDescription("Changes the bot's language on this server")
+ // .addStringOption(option =>
+ // option.setName('locale')
+ // .setDescription('The selected language')
+ // .setRequired(true)
+ // .addChoice('Français', 'fr')
+ // .addChoice('English', 'en')
+ // .addChoice('User prefered language (default)', 'off')
+ // )
] \ No newline at end of file