From 1d57af5993e367b3339033547156da3a66f1c160 Mon Sep 17 00:00:00 2001
From: 7cc5c4f330d47060 <exploding.kittens.a1b2c3@gmail.com>
Date: Sat, 27 Jul 2024 04:02:39 -0400
Subject: [PATCH] Update help command to not be completely white

---
 plugins/command.js       | 39 +++++++++++++++++++++++++++++++++++----
 plugins/commands/help.js |  4 ++--
 2 files changed, 37 insertions(+), 6 deletions(-)

diff --git a/plugins/command.js b/plugins/command.js
index 2d34889..714aae8 100755
--- a/plugins/command.js
+++ b/plugins/command.js
@@ -97,7 +97,7 @@ module.exports={
                 ]
             })
         }
-        b.printCmdHelp=(uuid,cmd,lang)=>{
+        b.printCmdHelp=(uuid,cmd,lang,color)=>{
             if(!cmds[cmd]){
                 b.tellraw(uuid,{text:getMessage(lang,"command.help.noCommand")});
                 return;
@@ -112,15 +112,46 @@ module.exports={
             }
             //b.tellraw(uuid,{"text":getMessage(lang,"command.help.commandInfo",[cmd,usage,desc])});
             for(const i in usage){
-                b.tellraw(uuid,{text:getMessage(lang,"command.help.commandUsage",[cmd,usage[i]])});
+                b.tellraw(uuid,{
+                    translate:getMessage(lang,"command.help.commandUsage"),
+                    color: color.secondary,
+                    with:[
+                        {
+                            text: cmd,
+                            color: color.primary
+                        },
+                        {
+                            text: usage[i],
+                            color: color.primary
+                        },
+                    ]
+                });
             }
-            b.tellraw(uuid,{text:getMessage(lang,"command.help.commandDesc",[desc])});
+            b.tellraw(uuid,{
+                translate:getMessage(lang,"command.help.commandDesc"),
+                color: color.secondary,
+                with:[
+                    {
+                        text: desc,
+                        color: color.primary
+                    }
+                ]
+            });
             const permsN=getMessage(lang,"command.help.permsNormal");
             const permsT=getMessage(lang,"command.help.permsTrusted");
             const permsO=getMessage(lang,"command.help.permsOwner");
             const permsC=getMessage(lang,"command.help.permsConsole");
             const rPerms=cmds[cmd].level?cmds[cmd].level:0;
-            b.tellraw(uuid,{text:getMessage(lang,"command.help.commandPerms",[[permsN,permsT,permsO,permsC][rPerms]])});
+            b.tellraw(uuid,{
+                translate:getMessage(lang,"command.help.commandPerms"),
+                color: color.secondary,
+                with:[
+                    {
+                        text: [permsN,permsT,permsO,permsC][rPerms],
+                        color: color.primary
+                    }
+                ]
+            });
         }
     },
     loadCMD:()=>{
diff --git a/plugins/commands/help.js b/plugins/commands/help.js
index 089f400..98f44a5 100644
--- a/plugins/commands/help.js
+++ b/plugins/commands/help.js
@@ -1,9 +1,9 @@
 module.exports={
     execute: (c)=>{
         if(c.args.length>0){
-            c.bot.printCmdHelp(c.uuid,c.args[0],c.lang);
+            c.bot.printCmdHelp(c.uuid,c.args[0],c.lang,c.colors);
         } else {
-            c.bot.printHelp(c.uuid,c.prefix,c.lang);
+            c.bot.printHelp(c.uuid,c.prefix,c.lang,c.colors);
         }
     },
     aliases: [