-
Notifications
You must be signed in to change notification settings - Fork 0
Setting Up Your Bot
Bots created using Halpbot-Core require 2 things:
- A
bot-config.propertiesfile in yourresourcesfolder, which allows you to easily configure your bot - A class extending the
Botinterface, which is used to bootstrap your bot
This property file allows you to configure different aspects of Halpbot. Depending on which adapters your bot is using, different properties may be required.
Note: If your config file is not named
bot-config.propertiesand not located atresources/bot-config.propertiesit won't be found by Halpbot
These properties are summarised below:
-
default value:
nz.pumbas.halpbot.configurations.SimpleDisplayConfiguration -
used by:
HalpbotCore
A fully qualified class name for the DisplayConfiguration to be used by Halpbot and is used to display messages. Along with the default SimpleDisplayConfiguration (which just displays objects directly) there is also nz.pumbas.halpbot.configurations.EmbedStringsDisplayConfiguration, which displays any strings as a MessageEmbed.
You can use your own custom DisplayConfiguration by specifying a class that implements the DisplayConfiguration interface.
- Built-in Commands
- @Command Parameters
- Arguments
- Annotations
- Custom Objects
- Custom TypeParsers
- Slash Commands - W.I.P.
- Pagination - W.I.P