From a700c9512bdac5a16ea4526957a6bc8aa8bd0753 Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Sat, 26 Sep 2026 09:40:35 -0700 Subject: [PATCH] fix help command exceeding discord message length limit --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index ac56f63..f5e6985 100644 --- a/index.js +++ b/index.js @@ -2167,7 +2167,7 @@ async function handleDocker(message, input) { } async function handleHelp(message, note) { - await message.reply( + const description = "Commands:\n" + "!watch GAME - start watching a game for sales\n" + "!remove GAME - stop watching a game (!unwatch also works)\n" + @@ -2195,8 +2195,9 @@ async function handleHelp(message, note) { "!trivia - video game trivia, multiple choice, first correct answer in chat wins 100 points\n" + "!score - show the top 10 members by trivia points\n" + "!wiki QUESTION - ask a specific game question (item locations, boss strategies, and so on) and get an accurate, searched answer" + - (note ? "\n\n" + note : "") - ); + (note ? "\n\n" + note : ""); + const embed = new EmbedBuilder().setDescription(description); + await message.reply({ embeds: [embed] }); } async function checkPrices(client) {