Things you really need to know

There are some things you need to know about some options before working on outside of this NoCliHandler instance.

Debugging (debugging)

Parameter
Description

showFullErrorLog

Whether or not to show the full error log

showBanner

Whether or not to show the banner upon the start of the program

Configuring Cooldowns (cooldownConfig)

Parameter
Description

defaultErrorMessage

Sets the default error message

botOwnersBypass

Whether to allow bot owners to bypass command cooldowns

dbRequired

Sets the default command cooldown limit. If cooldown limit exceeds, it will be stored in the database

Test Servers (testServers) and Bot Owners (botOwners)

Option
Description
Type

testServers

The test servers only testonly commands can run in

String[]

botOwners

The bot owners

String[]

For botOwners, the command handler will automatically add in the bot owners based on the person/organisation that owns the bot when not specified.

Configuring Emojis (emojiConfig)

This emoji configuration will have the following options:

  • disabled

  • enabled

  • error

  • info

  • success

All of these options have a type String, so do specify this if you want to have custom emojis for the bot to send messages based on the command handler.

Disabling Default Commands (disabledDefaultCommands)

There are some default commands you do not want to deploy when the bot starts, so here is a trick.

disabledDefaultCommands has an Array type String, and here are the default commands you need to know to disable (some of them marked with a check are not implemented yet):

Just specify any of them into an array and the command handler will disable it for you.

Last updated