Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
Niklas edited this page Jun 29, 2017 · 3 revisions

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;
    }
}
Clone this wiki locally