Skip to content

Commit

Permalink
Updated dependencies and some bug fixes/tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vauff committed Apr 9, 2018
1 parent 2ff4be5 commit e2377a8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<dependency>
<groupId>com.github.austinv11</groupId>
<artifactId>Discord4j</artifactId>
<version>2.9.3</version>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
Expand Down Expand Up @@ -79,7 +79,7 @@
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-client</artifactId>
<version>9.4.8.v20171121</version>
<version>9.4.9.v20180320</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
Expand Down Expand Up @@ -139,17 +139,17 @@
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-io</artifactId>
<version>9.4.8.v20171121</version>
<version>9.4.9.v20180320</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.10.0</version>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.10.0</version>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>com.vdurmont</groupId>
Expand All @@ -169,12 +169,12 @@
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-afterburner</artifactId>
<version>2.9.4</version>
<version>2.9.5</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.4</version>
<version>2.9.5</version>
</dependency>
<dependency>
<groupId>com.github.koraktor</groupId>
Expand All @@ -189,7 +189,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.8-dmr</version>
<version>8.0.9-rc</version>
</dependency>
<dependency>
<groupId>ca.pjer</groupId>
Expand All @@ -202,5 +202,5 @@
<version>3.10.0</version>
</dependency>
</dependencies>
<version>2.4.1</version>
<version>2.4.2</version>
</project>
2 changes: 1 addition & 1 deletion src/com/vauff/maunzdiscord/commands/Map.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void exe(MessageReceivedEvent event) throws Exception

if (json.getBoolean("enabled"))
{
if (!(json.getInt("downtimeTimer") >= 3))
if (!(json.getInt("downtimeTimer") >= json.getInt("failedConnectionsThreshold")))
{
if (!json.getString("lastMap").equals("N/A"))
{
Expand Down
2 changes: 1 addition & 1 deletion src/com/vauff/maunzdiscord/core/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class Main
{
public static IDiscordClient client;
public static String version = "2.4.1";
public static String version = "2.4.2";
public static Logger log;

public static void main(String[] args) throws DiscordException
Expand Down
1 change: 0 additions & 1 deletion src/com/vauff/maunzdiscord/core/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ public static IMessage buildPage(ArrayList<String> entries, int pageSize, int pa
Thread.sleep(250);
}

m.addReaction(EmojiManager.getForAlias(":x:"));
Thread.sleep(250);

if (pageNumber != (int) Math.ceil((float) entries.size() / (float) pageSize))
Expand Down
3 changes: 1 addition & 2 deletions src/com/vauff/maunzdiscord/features/ServerTimer.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void run()
{
String dbMap = json.getJSONArray("mapDatabase").getString(i);

if (dbMap.toString().equals(map))
if (dbMap.equalsIgnoreCase(map))
{
mapFound = true;
}
Expand All @@ -217,7 +217,6 @@ public void run()
{
json.append("mapDatabase", map);
}

}

if (!map.equals(""))
Expand Down
6 changes: 4 additions & 2 deletions src/com/vauff/maunzdiscord/features/StatsTimer.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.vauff.maunzdiscord.features;

import com.vauff.maunzdiscord.core.Main;
import sx.blah.discord.handle.obj.ActivityType;
import sx.blah.discord.handle.obj.StatusType;

/**
* Holds a timer to set the playing text in Discord
Expand All @@ -19,12 +21,12 @@ public void run()
{
if (!showingGuilds)
{
Main.client.changePlayingText(Main.client.getGuilds().size() + " guilds");
Main.client.changePresence(StatusType.ONLINE, ActivityType.PLAYING, Main.client.getGuilds().size() + " guilds");
showingGuilds = true;
}
else
{
Main.client.changePlayingText("discord.gg/v55fW9b");
Main.client.changePresence(StatusType.ONLINE, ActivityType.PLAYING, "discord.gg/v55fW9b");
showingGuilds = false;
}
}
Expand Down

0 comments on commit e2377a8

Please sign in to comment.