Skip to content

Commit

Permalink
version 0.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleuzen committed Jul 25, 2020
1 parent 4fe1e64 commit b00c169
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>4.2.0_175</version>
<version>4.2.0_181</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.json/json -->
Expand Down
4 changes: 2 additions & 2 deletions src/com/github/bleuzen/blizcord/Values.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class Values {

static final boolean DEV = false;

public static final String BOT_VERSION = "0.10.2" + (DEV ? "-dev" : "");
public static final String BOT_VERSION = "0.10.3" + (DEV ? "-dev" : "");
public static final String BOT_NAME = "Blizcord";
public static final String BOT_DEVELOPER = "Bleuzen <[email protected]>";
public static final String BOT_GITHUB_REPO = "Bleuzen/Blizcord";
Expand All @@ -13,7 +13,7 @@ public class Values {

public static final String SEARCH_PREFIX_YOUTUBE = "ytsearch:";

public static final int MAX_MESSAGE_LENGHT = 2000; // Discord's message length limit is 2000
public static final int MAX_MESSAGE_LENGTH = 2000; // Discord's message length limit is 2000

public static final int EXIT_CODE_RESTART_GUI = 2;

Expand Down
4 changes: 2 additions & 2 deletions src/com/github/bleuzen/blizcord/bot/commands/List.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public void execute(String arg, User author, MessageChannel channel, Guild guild
} else {
toSend.append("``There are no upcoming songs.``");
}
if(toSend.length() > Values.MAX_MESSAGE_LENGHT) {
if(toSend.length() > Values.MAX_MESSAGE_LENGTH) {
final String ending = "...```";
toSend.setLength((Values.MAX_MESSAGE_LENGHT - ending.length()));
toSend.setLength((Values.MAX_MESSAGE_LENGTH - ending.length()));
toSend.append(ending);
}
channel.sendMessage(toSend.toString()).queue();
Expand Down
4 changes: 2 additions & 2 deletions src/com/github/bleuzen/blizcord/bot/commands/Lists.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public void execute(String arg, User author, MessageChannel channel, Guild guild
}
outputMsg.append("```");

if(outputMsg.length() > Values.MAX_MESSAGE_LENGHT) {
if(outputMsg.length() > Values.MAX_MESSAGE_LENGTH) {
final String ending = "...```";
outputMsg.setLength((Values.MAX_MESSAGE_LENGHT - ending.length()));
outputMsg.setLength((Values.MAX_MESSAGE_LENGTH - ending.length()));
outputMsg.append(ending);
}
channel.sendMessage(outputMsg.toString()).queue();
Expand Down

0 comments on commit b00c169

Please sign in to comment.