Hmm... Someone please help me write a short and simple about in here...
-
Summer Project Camp Helper
A simple automation for creating new channels upon request.
Learn more about this mod here -
Well, that's it so far.
As new mods are added, this will be updated accordingly.
- The source root is present at
src/main/java
and the resource root is present atsrc/main/resources
. - The resources must include a resource bundle named
privateResources.properties
with the following keys:discord_bot_token
- This is the main authentication token used for the deployment bot. One may leave it blank and use development mode.development_discord_bot_token
- This is an alternative token which is used when testing out new features.discord_bot_invite_link
- This field contains an up-to-date invite link for the bot, which contains only the necessary permissions.
- Adding new functionality:
- Create a new class
MyNewMod
under the packagemods
. - Make it extend the class
SpecialisedListenerAdapter
. - Optionally override the
isSuperior
method. If it returnstrue
, the message events will be called on all occasions. If it returnsfalse
, the events will be called only when the bot is mentioned using the command string. - Override
getName
to return a suitable name for your mod, for example,My New Mod
. - Override
getHelpEmbed
to return a title-less embed containing information about your mod. - Override on of the default JDA events like
onMessageReceived
to start working on your mod. - Make sure to read the
Resources
andUtilities
class. - For logging, you can use the generalised logging methods in
GFG_KIIT_Bot
. - To register your Mod, navigate to
GFG_KIIT_Bot#initializeBot
add the line:
listenerAdapter.addEventListener(new MyNewMod());
- Create a new class