Add configurable aliases for all commands

This commit is contained in:
MichailiK
2019-10-25 17:51:56 +02:00
parent 11c9b00510
commit 7192d55732
35 changed files with 136 additions and 16 deletions
@@ -16,6 +16,7 @@
package com.jagrosh.jmusicbot.commands.owner;
import com.jagrosh.jdautilities.command.CommandEvent;
import com.jagrosh.jmusicbot.JMusicBot;
import com.jagrosh.jmusicbot.commands.OwnerCommand;
import net.dv8tion.jda.core.entities.Game;
@@ -30,6 +31,7 @@ public class SetgameCmd extends OwnerCommand
this.name = "setgame";
this.help = "sets the game the bot is playing";
this.arguments = "[action] [game]";
this.aliases = JMusicBot.config.getAliases(this.name);
this.guildOnly = false;
this.children = new OwnerCommand[]{
new SetlistenCmd(),