Skip to content

Commit ba1d23a

Browse files
author
EazyFTW
committed
Server log fixes.
1 parent d226005 commit ba1d23a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/me/TechsCode/TechDiscordBot/logs/ServerLogs.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import me.TechsCode.TechDiscordBot.TechDiscordBot;
44
import me.TechsCode.TechDiscordBot.util.TechEmbedBuilder;
5+
import org.apache.commons.lang3.exception.ExceptionUtils;
56

67
import java.awt.*;
78

@@ -13,6 +14,9 @@ public static boolean log(String msg) {
1314
return sendChannel("Log", msg, null);
1415
}
1516

17+
public static boolean error(Exception ex) {
18+
return sendChannel("Error", "```" + ExceptionUtils.getMessage(ex) + "```", new Color(178,34,34));
19+
}
1620

1721
public static boolean error(String error) {
1822
return sendChannel("Error", "```" + error + "```", new Color(178,34,34));

src/main/java/me/TechsCode/TechDiscordBot/util/Plugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ public String getRoleName() {
8484
}
8585

8686
public String getWiki() {
87-
return "https://" + getRoleName().toLowerCase() + "/wiki";
87+
return "https://" + getRoleName().toLowerCase() + ".com/wiki";
8888
}
8989

9090
public boolean hasWiki() {
9191
return true;
9292
}
9393

9494
public String getBanner() {
95-
return "https://" + getRoleName().toLowerCase() + "/banner.png";
95+
return "https://" + getRoleName().toLowerCase().replace(" ", "") + ".com/banner.png";
9696
}
9797

9898
public File getBannerAsFile() {

0 commit comments

Comments
 (0)