From 32bd63b4901719302830edfbaae84865ce523c4c Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Thu, 13 Jul 2023 13:46:56 +0200 Subject: [PATCH 1/2] feat: Show channel name and bitrate in queue/nowplaying --- commands/nowplaying.js | 4 +++- commands/queue.js | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/commands/nowplaying.js b/commands/nowplaying.js index 55e525c..c4882bd 100644 --- a/commands/nowplaying.js +++ b/commands/nowplaying.js @@ -93,7 +93,9 @@ module.exports = { embeds: [ new EmbedBuilder() .setAuthor({ - name: interaction.guild.name, + name: `Channel: ${queue.channel.name} (${ + queue.channel.bitrate / 1000 + }kbps)`, iconURL: interaction.guild.iconURL() }) .setDescription( diff --git a/commands/queue.js b/commands/queue.js index a22a452..50e0b95 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -88,7 +88,9 @@ module.exports = { embeds: [ new EmbedBuilder() .setAuthor({ - name: interaction.guild.name, + name: `Channel: ${queue.channel.name} (${ + queue.channel.bitrate / 1000 + }kbps)`, iconURL: interaction.guild.iconURL() }) .setDescription(`**Queue**\n${queueString}`) @@ -122,7 +124,9 @@ module.exports = { embeds: [ new EmbedBuilder() .setAuthor({ - name: interaction.guild.name, + name: `Channel: ${queue.channel.name} (${ + queue.channel.bitrate / 1000 + }kbps)`, iconURL: interaction.guild.iconURL() }) .setDescription( From 2d7abaab6ce94e62306803179ab573fb9b28dd8b Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Thu, 13 Jul 2023 13:48:16 +0200 Subject: [PATCH 2/2] fix: Do not allow console logging statements --- .eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 30d2bee..8967c60 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -35,6 +35,7 @@ "ignoreComments": true } ], - "curly": ["error", "all"] + "curly": ["error", "all"], + "no-console": ["error"] } }