Skip to content

Commit

Permalink
2.10.1
Browse files Browse the repository at this point in the history
* Fixed a bug that caused the rulecode command to fail to respond or
update a user's roles.
* Fixed a bug that caused messages to work even if you didnt press space
after the command name leading to some command being impossible to run.
* Fixed serveral nullpointers within the modnote command. andi, what did
i say about testing your code?
* Fixed a bug in that the denyinvite catcher would throw an error on the
first message a user sent to a server.
+ Added a message thats sent when a muted user returns that is send to
the admin channel if set up.
* Fixed a bug that caused the char list to always show the author's list
rather than another user if specified.
* Fixed a bug where the rulecode role would automatically be handed out
to everyone if it existed rather than if the user had obtained the code
or not.
* NullPointer fixed in ModNote
truncateString also fixed, forgot to offset index again.
* Fix a bug that caused art pinning to be run twice with different user
info, causing the incorrect message to be displayed.
* Fix a bug causing TopUserForRole to return results backwards.
+ Also added the alias TopUser to the command.
  • Loading branch information
Vaerys-Dawn committed Mar 9, 2018
1 parent cb0c80e commit 963fb25
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.vaerys</groupId>
<artifactId>DiscordSAIL</artifactId>
<version>2.10.0</version>
<version>2.10.1</version>

<properties>
<discord4j.version>89849cc</discord4j.version>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/github/vaerys/commands/modtools/Mute.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public String execute(String args, CommandObject command) {
String timeValue = "";

if (timeSecs > 0) {
timeValue = " for " + Utility.formatTime(timeSecs, true);
timeValue = Utility.formatTime(timeSecs, true);
}

if (Pattern.compile("(^⚠ | ⚠|⚠)").matcher(reason.toString()).find()) {
Expand All @@ -80,7 +80,7 @@ public String execute(String args, CommandObject command) {

if (reason.toString().isEmpty()) reason.setContent("No reason given");
// final responses:
String response = String.format(msgFormat, muted.displayName, timeValue);
String response = String.format(msgFormat, muted.displayName, " for " + timeValue);

if (adminChannel != null) {
RequestHandler.sendMessage(response + String.format(adminMsg, command.user.displayName,
Expand All @@ -106,7 +106,7 @@ protected String[] names() {

@Override
protected String usage() {
return "[@User] [+/-/add/del] (Time) (Reason)";
return "[@User] (Time) (Reason)";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class ListModifs extends Command {

public static XEmbedBuilder getList(CommandObject command) {
String title = "> Here are the **Modifier** roles you can choose from:\n";
String title = "> Here are the Modifier roles you can choose from:";
List<String> list = command.guild.getModifierRoles().stream().map(iRole -> iRole.getName()).collect(Collectors.toList());
XEmbedBuilder builder = new XEmbedBuilder(command);
builder.withTitle(title);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class ListRoles extends Command {

public static XEmbedBuilder getList(CommandObject command) {
String title = "> Here are the **Cosmetic** roles you can choose from:\n";
String title = "> Here are the Cosmetic roles you can choose from:";
List<String> list = command.guild.getCosmeticRoles().stream().map(iRole -> iRole.getName()).collect(Collectors.toList());
XEmbedBuilder builder = new XEmbedBuilder(command);
builder.withTitle(title);
Expand Down
Binary file modified target/JavaDiscordSAILv2.jar
Binary file not shown.

0 comments on commit 963fb25

Please sign in to comment.