Skip to content

bxnjadev/YerController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YerController

Basic JDA command handler

Usage

First you need to create an instance of the API class

YerAPI yerAPI = new API(jda); 

Register Command

yerAPI.getCommandHandler().registerCommand(new CommandClass("prefix","command")); 

Class Command

public class CommandClass extends Command {


    public CommandClass(String command, String prefix) {
        super(command, prefix);
    }

    @APermission(Permission = Permission.UNKNOW, Message = "You don't have permissions")
    public void execute(MessageReceivedEvent event) {
        event.getChannel().sendMessage("This is a command").queue();
    }

About

Basic JDA command handler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages