From ae894a5f4264dfc859656a9a29931f51026296be Mon Sep 17 00:00:00 2001 From: Mazawrath Date: Tue, 18 Sep 2018 20:24:11 -0400 Subject: [PATCH] Fixed command annotations --- .../com/mazawrath/beanbot/commands/ServerInfoCommand.java | 7 ------- .../beanbot/commands/beancoin/BeanTransferCommand.java | 2 +- .../beanbot/commands/beancoin/BeanboardCommand.java | 1 + .../beanbot/commands/copypasta/CoderedCommand.java | 1 + .../beanbot/commands/copypasta/GivemodCommand.java | 2 +- .../beanbot/commands/maza/MazapostchangelogCommand.java | 4 +++- 6 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/mazawrath/beanbot/commands/ServerInfoCommand.java b/src/main/java/com/mazawrath/beanbot/commands/ServerInfoCommand.java index d4f1b5f..bd6f6fb 100644 --- a/src/main/java/com/mazawrath/beanbot/commands/ServerInfoCommand.java +++ b/src/main/java/com/mazawrath/beanbot/commands/ServerInfoCommand.java @@ -1,6 +1,5 @@ package com.mazawrath.beanbot.commands; -import com.mazawrath.beanbot.utilities.Points; import de.btobastian.sdcf4j.Command; import de.btobastian.sdcf4j.CommandExecutor; import org.javacord.api.DiscordApi; @@ -15,12 +14,6 @@ import java.util.TimeZone; public class ServerInfoCommand implements CommandExecutor { - private Points points; - - public ServerInfoCommand(Points points) { - this.points = points; - } - @Command( aliases = {"serverinfo"}, usage = "serverinfo", diff --git a/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTransferCommand.java b/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTransferCommand.java index 9efb98a..a3308aa 100644 --- a/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTransferCommand.java +++ b/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTransferCommand.java @@ -19,7 +19,7 @@ public BeanTransferCommand(Points points) { @Command( aliases = {"beantransfer", "cointransfer"}, usage = "beantransfer [discriminated name] [amount]", - description = "Check how many beanCoin you have.", + description = "Sends beanCoin to another user.", privateMessages = false ) diff --git a/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanboardCommand.java b/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanboardCommand.java index e195b43..2381b3c 100644 --- a/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanboardCommand.java +++ b/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanboardCommand.java @@ -21,6 +21,7 @@ public BeanboardCommand(Points points) { @Command( aliases = {"beanboard", "coinboard"}, description = "Gets a leaderboard of who has the most beanCoin on the server.", + usage = "beanboard", privateMessages = false ) diff --git a/src/main/java/com/mazawrath/beanbot/commands/copypasta/CoderedCommand.java b/src/main/java/com/mazawrath/beanbot/commands/copypasta/CoderedCommand.java index 89e63b4..a3b77d5 100644 --- a/src/main/java/com/mazawrath/beanbot/commands/copypasta/CoderedCommand.java +++ b/src/main/java/com/mazawrath/beanbot/commands/copypasta/CoderedCommand.java @@ -20,6 +20,7 @@ public CoderedCommand(Points points) { @Command( aliases = {"codered"}, + usage = "codered", privateMessages = false ) diff --git a/src/main/java/com/mazawrath/beanbot/commands/copypasta/GivemodCommand.java b/src/main/java/com/mazawrath/beanbot/commands/copypasta/GivemodCommand.java index b0e2657..d76e343 100644 --- a/src/main/java/com/mazawrath/beanbot/commands/copypasta/GivemodCommand.java +++ b/src/main/java/com/mazawrath/beanbot/commands/copypasta/GivemodCommand.java @@ -24,7 +24,7 @@ public GivemodCommand(Points points) { privateMessages = false ) - public void onCommand(Message command, String[] args, ServerTextChannel serverTextChannel, User author, Server server) { + public void onCommand(ServerTextChannel serverTextChannel, User author, Server server) { if (points.removePoints(author.getIdAsString(), server.getIdAsString(), 10)) { final String[] messsage = {""}; if (author.getIdAsString().equals("112653978432503808")) { diff --git a/src/main/java/com/mazawrath/beanbot/commands/maza/MazapostchangelogCommand.java b/src/main/java/com/mazawrath/beanbot/commands/maza/MazapostchangelogCommand.java index 3b6bbb8..73b8499 100644 --- a/src/main/java/com/mazawrath/beanbot/commands/maza/MazapostchangelogCommand.java +++ b/src/main/java/com/mazawrath/beanbot/commands/maza/MazapostchangelogCommand.java @@ -28,6 +28,7 @@ public void onCommand(String command, String id, DiscordApi api, ServerTextChann private String getRecentChangeLog() { return "**New beanBOT update released.**\n" + + "Detailed changelog can be found on " + // TODO add link to release page "**2.0.0**\n" + "\n" + "**New**\n" + @@ -38,7 +39,8 @@ private String getRecentChangeLog() { // "\t\t*Use `.beanmarket` to get started.*\n" + // "\t- Added `.beaninvest`.\n" + "\t- Added `.blessed`.\n" + - "\t- Added `.stfu`" + + "\t- Added `.stfu`\n" + + "\t- Added `.source`\n" + "\n" + "**Changes**\n" + "\t- Changed the chances of winning on `.beanbet` from 25% to 35%.\n" +