mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: Added more configurable options for user replies
This commit is contained in:
1 parent
ed0091c1b1
commit
65a94ceb6c
5 files changed
+23
-8
No files matched your search
+2
-1
@@ -9,6 +9,7 @@ const {
|
|||||||
} = require('discord.js');
|
} = require('discord.js');
|
||||||
const {
|
const {
|
||||||
embedColors,
|
embedColors,
|
||||||
|
embedIcons,
|
||||||
filterList,
|
filterList,
|
||||||
filterThreadAmount
|
filterThreadAmount
|
||||||
} = require('../config.json');
|
} = require('../config.json');
|
||||||
@@ -86,7 +87,7 @@ module.exports = {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
'**Toggle filters** (beta)\nToggle or disable audio filters for playback.'
|
`**Toggle filters** ${embedIcons.beta}\nToggle or disable audio filters for playback.`
|
||||||
)
|
)
|
||||||
.setColor(embedColors.colorInfo)
|
.setColor(embedColors.colorInfo)
|
||||||
],
|
],
|
||||||
|
|||||||
+5
-3
@@ -1,6 +1,6 @@
|
|||||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||||
const { EmbedBuilder } = require('discord.js');
|
const { EmbedBuilder } = require('discord.js');
|
||||||
const { embedColors } = require('../config.json');
|
const { embedColors, embedIcons, botInfo } = require('../config.json');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
@@ -12,7 +12,7 @@ module.exports = {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
'**List of commands**\n' +
|
`${embedIcons.rule} **List of commands**\n` +
|
||||||
'`/help` - Show this menu.\n' +
|
'`/help` - Show this menu.\n' +
|
||||||
'`/play` `query` - Add a track or playlist to the queue by searching or url.\n' +
|
'`/play` `query` - Add a track or playlist to the queue by searching or url.\n' +
|
||||||
'`/pause` - Pause or resume the current track.\n' +
|
'`/pause` - Pause or resume the current track.\n' +
|
||||||
@@ -22,7 +22,9 @@ module.exports = {
|
|||||||
'`/volume` `[percentage]` - Show or set the playback volume for tracks.\n' +
|
'`/volume` `[percentage]` - Show or set the playback volume for tracks.\n' +
|
||||||
'`/skip` `[trackNumber]` - Skip the current track.\n' +
|
'`/skip` `[trackNumber]` - Skip the current track.\n' +
|
||||||
'`/remove` `trackNumber` - Remove a specific track from the queue.\n' +
|
'`/remove` `trackNumber` - Remove a specific track from the queue.\n' +
|
||||||
'`/leave` - Remove bot from voice channel and clear the queue.\n'
|
'`/leave` - Remove bot from voice channel and clear the queue.\n\n' +
|
||||||
|
`${embedIcons.support} **Support server**\nJoin the support server for help or suggestions: \n${botInfo.supportServerInviteUrl}\n\n` +
|
||||||
|
`${embedIcons.bot} **Invite the bot**\nAdd me to another server: \n[Click me!](${botInfo.botInviteUrl})`
|
||||||
)
|
)
|
||||||
.setColor(embedColors.colorInfo)
|
.setColor(embedColors.colorInfo)
|
||||||
]
|
]
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||||
const { useMainPlayer, useQueue } = require('discord-player');
|
const { useMainPlayer, useQueue } = require('discord-player');
|
||||||
const { EmbedBuilder } = require('discord.js');
|
const { EmbedBuilder } = require('discord.js');
|
||||||
const { embedColors, playerOptions } = require('../config.json');
|
const { embedColors, playerOptions, botInfo } = require('../config.json');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
@@ -57,7 +57,7 @@ module.exports = {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
'**Unsupported Source**\nThis audio source is a YouTube live stream, which is currently not a supported format.\n\n_If you think that this is incorrect, please submit a bug report in the bot [support server](https://discord.gg/t6Bm8wPpXB)._'
|
`**Unsupported Source**\nThis audio source is a YouTube live stream, which is currently not a supported format.\n\n_If you think that this is incorrect, please submit a bug report in the bot [support server](${botInfo.supportServerInviteUrl})._`
|
||||||
)
|
)
|
||||||
.setColor(embedColors.colorWarning)
|
.setColor(embedColors.colorWarning)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"botInfo": {
|
||||||
|
"name": "Cadence",
|
||||||
|
"websiteUrl": "Unknown",
|
||||||
|
"botInviteUrl": "Unknown",
|
||||||
|
"supportServerInviteUrl": "Unknown"
|
||||||
|
},
|
||||||
"systemServerGuildIds": [
|
"systemServerGuildIds": [
|
||||||
"Server id where system commands can be used",
|
"Server id where system commands can be used",
|
||||||
"Another server id where system commands can be used"
|
"Another server id where system commands can be used"
|
||||||
@@ -29,6 +35,12 @@
|
|||||||
"leftChar": "▬",
|
"leftChar": "▬",
|
||||||
"rightChar": "▬"
|
"rightChar": "▬"
|
||||||
},
|
},
|
||||||
|
"embedIcons": {
|
||||||
|
"beta": "`beta`",
|
||||||
|
"rule": "📒",
|
||||||
|
"support": "❓",
|
||||||
|
"bot": "🤖"
|
||||||
|
},
|
||||||
"filterThreadAmount": "2",
|
"filterThreadAmount": "2",
|
||||||
"filterList": [
|
"filterList": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const logger = require('./services/logger.js');
|
|||||||
const { EmbedBuilder } = require('discord.js');
|
const { EmbedBuilder } = require('discord.js');
|
||||||
const { Player, onBeforeCreateStream } = require('discord-player');
|
const { Player, onBeforeCreateStream } = require('discord-player');
|
||||||
const { stream } = require('yt-stream');
|
const { stream } = require('yt-stream');
|
||||||
const { embedColors } = require('./config.json');
|
const { embedColors, botInfo } = require('./config.json');
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
|
|
||||||
// Setup required permissions for the bot to work
|
// Setup required permissions for the bot to work
|
||||||
@@ -186,7 +186,7 @@ client.on('interactionCreate', async (interaction) => {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
'**Unexpected Error**\nThere was an error while executing this command! Please try again.\n\n_If this issue persists, please submit a bug report in the bot [support server](https://discord.gg/t6Bm8wPpXB)._'
|
`**Unexpected Error**\nThere was an error while executing this command! Please try again.\n\n_If this issue persists, please submit a bug report in the bot [support server](${botInfo.supportServerInviteUrl})._`
|
||||||
)
|
)
|
||||||
.setColor(embedColors.colorError)
|
.setColor(embedColors.colorError)
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user