-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bleuzen
committed
Jun 14, 2017
1 parent
167e420
commit 33defba
Showing
8 changed files
with
97 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
import net.dv8tion.jda.core.utils.SimpleLog; | ||
import net.dv8tion.jda.core.utils.SimpleLog.Level; | ||
|
||
public class Log { | ||
|
||
static void print(String msg) { | ||
if(Values.TESTING) { | ||
System.out.println("[" + Values.BOT_NAME + "-Testing] " + msg); | ||
} else { | ||
// only print if JDA logging is enabled | ||
if(!SimpleLog.LEVEL.equals(Level.OFF)) { | ||
System.out.println("[" + Values.BOT_NAME + "] " + msg); | ||
} | ||
} | ||
|
||
static void debug(String msg) { | ||
if(a.isDebug()) { | ||
System.out.println("[" + Values.BOT_NAME + "] [Debug] " + msg); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
public class Values { | ||
|
||
static final boolean TESTING = false; | ||
static final String TESTING_CONFIG = "testingConfig.json"; | ||
static final boolean DEV = false; | ||
static final String DEV_CONFIG = "devConfig.json"; | ||
|
||
static final String BOT_VERSION = "0.3.2.1" + (TESTING ? "-dev" : ""); | ||
static final String BOT_VERSION = "0.3.3" + (DEV ? "-dev" : ""); | ||
static final String BOT_NAME = "Blizcord"; | ||
static final String BOT_DEVELOPER = "Bleuzen <[email protected]>"; | ||
static final String BOT_GITHUB_REPO = "Bleuzen/Blizcord"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters