Skip to content

Commit

Permalink
Little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
S0ngfu committed Oct 3, 2019
1 parent 0c18dce commit 8dbaac9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Main {
public static void main(String[] args) {
LoggerFactory.getLogger(Main.class).info("=======================================================");
LoggerFactory.getLogger(Main.class).info(" " + Constants.name + " v" + Constants.version
+ " for " + Constants.game);
+ " for " + Constants.game.getName());
LoggerFactory.getLogger(Main.class).info("=======================================================");
IDiscordClient client = ClientConfig.DISCORD();
client.getDispatcher().registerListener(new ReadyListener());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/enums/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public enum Game {

DOFUS("Dofus", "https://discordapp.com/oauth2/authorize?&client_id=202916641414184960&scope=bot"),
DOFUS_TOUCH("Dofus Touch", Constants.invite);
DOFUS_TOUCH("DofusTouch", Constants.invite);

private String name;
private String botInvite;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/util/ServerUtils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package util;

import data.Constants;
import data.ServerDofus;
import enums.Game;
import exceptions.DiscordException;
import exceptions.NotFoundDiscordException;
import exceptions.TooMuchDiscordException;
Expand Down Expand Up @@ -32,7 +32,7 @@ public static ServerQuery getServerDofusFromName(String proposedServer){
.collect(Collectors.toList());

List<ServerDofus> serverDofusList = allServers.stream()
.filter(server -> server.getGame() == Game.DOFUS)
.filter(server -> server.getGame() == Constants.game)
.collect(Collectors.toList());

if (!serverDofusList.isEmpty()) {
Expand Down

0 comments on commit 8dbaac9

Please sign in to comment.