diff --git a/src/main/java/net/gudenau/discord/images/DiscordImages.java b/src/main/java/net/gudenau/discord/images/DiscordImages.java index 5204e6e..55e6b8c 100644 --- a/src/main/java/net/gudenau/discord/images/DiscordImages.java +++ b/src/main/java/net/gudenau/discord/images/DiscordImages.java @@ -29,7 +29,7 @@ * @since 1.0.0 * */ public class DiscordImages{ - public static final String BOT_VERSION = "1.0.1"; + public static final String BOT_VERSION = "1.0.2"; public static void main(String[] arguments){ Natives.loadNatives(); diff --git a/src/main/java/net/gudenau/discord/images/command/CommandManager.java b/src/main/java/net/gudenau/discord/images/command/CommandManager.java index 952d96b..843b2ec 100644 --- a/src/main/java/net/gudenau/discord/images/command/CommandManager.java +++ b/src/main/java/net/gudenau/discord/images/command/CommandManager.java @@ -136,7 +136,7 @@ private void registerCommands(){ new UpdateAvatarCommand() ); - register(new MessageCommand("invite", "Get's the URL to invite this bot!", "Thanks for the interest!\nhttps://discordapp.com/oauth2/authorize?client_id=532402004568440852&scope=bot&permissions=-1")); + register(new MessageCommand("invite", "Get's the URL to invite this bot!", "Thanks for the interest!\nhttps://invite.imagebot.gudenau.net/")); register(new AvatarCommand()); register(new GuildCommand()); @@ -230,6 +230,7 @@ private void registerCommands(){ * */ private void registerAliases(){ registerAlias("e", "emoji"); + registerAlias("emote", "emoji"); registerAlias("a", "avatar"); registerAlias("g", "guild"); registerAlias("i", "info"); diff --git a/src/main/java/net/gudenau/discord/images/command/HelpCommand.java b/src/main/java/net/gudenau/discord/images/command/HelpCommand.java index a545ed2..76cf59f 100644 --- a/src/main/java/net/gudenau/discord/images/command/HelpCommand.java +++ b/src/main/java/net/gudenau/discord/images/command/HelpCommand.java @@ -35,16 +35,7 @@ public Result execute(@Nonnull TextChannel channel, @Nonnull Member author, @Non return Result.help(this); } if(arguments.isEmpty()){ - List commands = new ArrayList<>(commandMap.values()); - commands.sort(Comparator.comparing(IMessageCommand::getName)); - - var builder = new StringBuilder("Commands:"); - for(IMessageCommand command : commands){ - if(command.isAvailable(channel, author)){ - builder.append("\n**").append(command.getName()).append("**\n > ").append(command.getHelp()); - } - } - return Result.success(builder.toString()); + return Result.success("For a complete listing of commands see https://help.imagebot.gudenau.net/"); }else{ var commandName = arguments.get(0); var command = commandManager.getCommand(commandName); diff --git a/src/main/java/net/gudenau/discord/images/command/InfoCommand.java b/src/main/java/net/gudenau/discord/images/command/InfoCommand.java index 8ba1e65..19367ae 100644 --- a/src/main/java/net/gudenau/discord/images/command/InfoCommand.java +++ b/src/main/java/net/gudenau/discord/images/command/InfoCommand.java @@ -19,7 +19,9 @@ public Result execute(@Nonnull TextChannel channel, @Nonnull Member author, @Non return Result.success( "Created by gudenau\n" + "Issues: https://github.com/gudenau/discord-ImageBot/issues\n" + - "Help: https://todo\n" + + "Help: https://help.imagebot.gudenau.net/\n" + + "Source: https://imagebot.gudenau.net/\n" + + "Invite: https://invite.imagebot.gudenau.net/\n" + "Version: " + DiscordImages.BOT_VERSION ); }