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/javaand the resource root is present atsrc/main/resources. - The resources must include a resource bundle named
privateResources.propertieswith 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
MyNewModunder the packagemods. - Make it extend the class
SpecialisedListenerAdapter. - Optionally override the
isSuperiormethod. 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
getNameto return a suitable name for your mod, for example,My New Mod. - Override
getHelpEmbedto return a title-less embed containing information about your mod. - Override on of the default JDA events like
onMessageReceivedto start working on your mod. - Make sure to read the
ResourcesandUtilitiesclass. - For logging, you can use the generalised logging methods in
GFG_KIIT_Bot. - To register your Mod, navigate to
GFG_KIIT_Bot#initializeBotadd the line:
listenerAdapter.addEventListener(new MyNewMod());
- Create a new class
