CalypsoBot
CalypsoBot copied to clipboard
How to add a new help category
How do I add a new category for my personal fork of CalypsoBot?
Hey there, you would need to specify your category in the types
object in Client.js. you would need to assign it like
CATEGORY: "category"
and you would need to do some changes in the help and aliases command for the name and emoji to show.
I added them but it didnt seem to have worked.
Edit: The commands showed up but the title of the category (i.e. Music) did not show up.
you need to add a variable for the category in the emojiMap
and the categories object. I'm not sure I explained well but you can check line 30 and 63 in help.js
for it.
I added those too.
Take example as music category. Edit types in client.js
[line 36] file, then move to help.js
Under info category and Edit line 29
which will look like this :
const { INFO, FUN, COLOR, POINTS, MISC, MUSIC, MOD, ADMIN, OWNER } = message.client.types;
and line 61 by adding:
[MUSIC]: ${capitalize(MUSIC)}
,
Reload the bot it'll work!