3 Home
Niklas edited this page 2 years ago

Welcome to the MoMuOSB wiki!

Constants

    FileDriver DRIVER = FileDriver.getInstance();  //Your Files and Config / Language File
    DiscordInit INIT = DiscordInit.getInstance(); //DiscordInit Instance
    INIT.BOT //Bot Instance
    EventListener EVENT = EventListener.getInstance(); // Eventlistener instance
    LanguageLoader LANG = LanguageLoader.getInstance(); //Language Instance

Module

public class HelpCommand extends Module {

    @Command(
            command = "help", //Command
            description = "Display the help", //Description, will be shown under .help
            alias = "h", //Short Command,
            attributes = {"Name"}, //Attributes Description
            permission = Permissions.READ_MESSAGES //Permission for executing
    )
    public boolean help(MessageReceivedEvent event, String[] args) {
       
        //Your Code

        return true;
    }
}