mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 14:38:49 +00:00
feat!: Updated configuration and moved config location
This commit is contained in:
1 parent
2d0df79dac
commit
dd4b56ae67
40 files changed
+468
-482
No files matched your search
@@ -1,7 +1,5 @@
|
||||
const path = require('node:path');
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
const { embedColors, embedIcons, botInfo } = require(path.resolve('./config.json'));
|
||||
const { embedOptions, botOptions } = require('../../config');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
@@ -13,22 +11,22 @@ module.exports = {
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setDescription(
|
||||
`${embedIcons.rule} **List of commands**\n` +
|
||||
`${embedOptions.icons.rule} **List of commands**\n` +
|
||||
'- **`/play` `query`** - Add a track or playlist to the queue by url or search.\n' +
|
||||
'- **`/pause`** - Pause or resume the current track.\n' +
|
||||
'- **`/queue` `[page]`** - Show the list of tracks added to the queue.\n' +
|
||||
'- **`/nowplaying`** - Show information about the track currently playing.\n' +
|
||||
`- **\`/seek\` \`duration\`** - ${embedIcons.new} Seek to a specified duration in the current track.\n` +
|
||||
`- **\`/loop\` \`mode\`** - ${embedIcons.beta} Toggle looping a track, the whole queue or autoplay.\n` +
|
||||
`- **\`/seek\` \`duration\`** - ${embedOptions.icons.new} Seek to a specified duration in the current track.\n` +
|
||||
`- **\`/loop\` \`mode\`** - ${embedOptions.icons.beta} Toggle looping a track, the whole queue or autoplay.\n` +
|
||||
'- **`/filters`** - Toggle various audio filters during playback.\n' +
|
||||
'- **`/volume` `[percentage]`** - Show or set the playback volume for tracks.\n' +
|
||||
'- **`/skip` `[tracknumber]`** - Skip to next or specified track.\n' +
|
||||
'- **`/remove` `tracknumber`** - Remove specified track from the queue.\n' +
|
||||
'- **`/leave`** - Clear the queue and remove the bot from voice channel.\n\n' +
|
||||
`${embedIcons.support} **Support server**\nJoin the support server for help or suggestions: \n**${botInfo.supportServerInviteUrl}**\n\n` +
|
||||
`${embedIcons.bot} **Enjoying ${botInfo.name}?**\nAdd me to another server: \n**[Click me!](${botInfo.botInviteUrl})**`
|
||||
`${embedOptions.icons.support} **Support server**\nJoin the support server for help or suggestions: \n**${botOptions.serverInviteUrl}**\n\n` +
|
||||
`${embedOptions.icons.bot} **Enjoying ${botOptions.name}?**\nAdd me to another server: \n**[Click me!](${botOptions.botInviteUrl})**`
|
||||
)
|
||||
.setColor(embedColors.colorInfo)
|
||||
.setColor(embedOptions.colors.info)
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user