mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-02-14 23:48:26 -06:00
ports! all the ports!!
This commit is contained in:
@@ -11,7 +11,7 @@ public enum BotSettings {
|
||||
SQL_HOST, SQL_USER, SQL_PASSWORD,
|
||||
SQL_DB, SQL_PORT, SQL_PREFIX, TOKEN, SECRET, ID,
|
||||
LANG_PATH, PW_TOKEN, GOOGLE_CLIENT_ID,
|
||||
GOOGLE_CLIENT_SECRET, RUN_API;
|
||||
GOOGLE_CLIENT_SECRET, RUN_API, PORT;
|
||||
|
||||
private String val;
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ public class SparkUtils {
|
||||
@SuppressWarnings("ThrowableNotThrown")
|
||||
public static void initSpark() {
|
||||
if (BotSettings.RUN_API.get().equalsIgnoreCase("true")) {
|
||||
port(Integer.valueOf(BotSettings.PORT.get()));
|
||||
|
||||
staticFileLocation("/web/public"); // Main site location
|
||||
|
||||
//Register the API Endpoints
|
||||
|
||||
Reference in New Issue
Block a user