Search in sources :

Example 1 with CommandManager

use of fun.rubicon.command.CommandManager in project Rubicon by Rubicon-Bot.

the class RubiconBot method registerCommandHandlers.

/**
 * Registers all command handlers used in this project.
 *
 * @see CommandManager
 */
private void registerCommandHandlers() {
    // Usage: commandManager.registerCommandHandler(yourCommandHandler...);
    // admin commands package
    commandManager.registerCommandHandlers(new CommandBan(), new CommandKick(), new CommandMute(), new CommandUnmute(), new CommandWarn(), new CommandPortal(), new CommandVerification(), new CommandAutochannel(), new CommandRole(), new CommandUnban());
    // botowner commands package
    commandManager.registerCommandHandlers(new CommandDBGuild(), new CommandPlay(), new CommandRestart(), new CommandStop(), new CommandGuilds(), new CommandCreateInvite(), new CommandEval(), new CommandTwitter(), new CommandGlobalBlacklist(), new CommandGenerateDocsJSON(), new CommandMaintenance(), new CommandGuildData(), new CommandAlarm());
    // music commands package
    commandManager.registerCommandHandlers(new fun.rubicon.commands.music.CommandPlay(), new CommandSkip(), new CommandJoin(), new CommandLeave(), new CommandShuffle(), new CommandNow(), new CommandPause(), new CommandResume(), new CommandQueue(), new CommandVolume(), new CommandForceplay());
    // fun commands package
    commandManager.registerCommandHandlers(new CommandRip(), new CommandSlot(), new CommandRoulette(), new CommandGiphy(), new CommandVideo(), new CommandUrban(), new CommandMinecraft(), new CommandOWStats(), new CommandAsciiText());
    // general commands package
    commandManager.registerCommandHandlers(new CommandHelp(), new CommandFeedback(), new CommandPing(), new CommandInfo(), new CommandInvite(), new CommandSpeedTest(), new CommandStatistics(), new CommandMoney(), new CommandUptime(), new CommandProfile(), new CommandBio(), new CommandMiner(), new CommandPremium(), new CommandGitBug());
    // settings commands package
    commandManager.registerCommandHandlers(new CommandAutorole(), new CommandJoinMessage(), new CommandPrefix(), new CommandWelcomeChannel(), new CommandWhitelist(), // new CommandBlacklist(),             Sorry but is buggy as hell
    new CommandLeaveMessage(), new CommandLog(), new CommandLevelMessage());
    // tools commands package
    commandManager.registerCommandHandlers(new CommandChoose(), new CommandClear(), new CommandRandomColor(), new CommandDice(), new CommandLmgtfy(), new CommandSay(), new CommandQRCode(), new CommandSearch(), new CommandServerInfo(), new CommandShorten(), new CommandUserInfo(), new CommandVote(), new CommandMoveAll(), new CommandNick());
    // also register commands from the old framework
    // noinspection deprecation
    new CommandManager();
}
Also used : fun.rubicon.commands.music(fun.rubicon.commands.music) CommandManager(fun.rubicon.command.CommandManager) CommandPortal(fun.rubicon.commands.admin.CommandPortal) CommandAutochannel(fun.rubicon.commands.admin.CommandAutochannel) CommandPlay(fun.rubicon.commands.botowner.CommandPlay) CommandVerification(fun.rubicon.commands.admin.CommandVerification)

Aggregations

CommandManager (fun.rubicon.command.CommandManager)1 CommandAutochannel (fun.rubicon.commands.admin.CommandAutochannel)1 CommandPortal (fun.rubicon.commands.admin.CommandPortal)1 CommandVerification (fun.rubicon.commands.admin.CommandVerification)1 CommandPlay (fun.rubicon.commands.botowner.CommandPlay)1 fun.rubicon.commands.music (fun.rubicon.commands.music)1