Skip to content

Commit

Permalink
Fixed command annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazawrath committed Sep 19, 2018
1 parent cf3891a commit ae894a5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public CoderedCommand(Points points) {

@Command(
aliases = {"codered"},
usage = "codered",
privateMessages = false
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand All @@ -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" +
Expand Down

0 comments on commit ae894a5

Please sign in to comment.