CalypsoBot icon indicating copy to clipboard operation
CalypsoBot copied to clipboard

How to add a new help category

Open Slddev opened this issue 3 years ago • 5 comments

How do I add a new category for my personal fork of CalypsoBot?

Slddev avatar Feb 22 '21 01:02 Slddev

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.

Anogh297 avatar Feb 22 '21 03:02 Anogh297

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.

Slddev avatar Feb 24 '21 05:02 Slddev

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.

Anogh297 avatar Feb 24 '21 06:02 Anogh297

I added those too.

Slddev avatar Feb 24 '21 06:02 Slddev

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!

Katerina1179 avatar Mar 12 '21 14:03 Katerina1179