From 073d2455cb46315285e279471134d3e629516dcc Mon Sep 17 00:00:00 2001 From: Pingex Date: Sat, 10 Sep 2016 15:47:40 +0200 Subject: [PATCH] Added general.bot_owner config key. --- dcf.properties.example | 3 +++ src/main/java/net/pingex/dcf/core/Configuration.java | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/dcf.properties.example b/dcf.properties.example index aa51b9a..8c291ad 100644 --- a/dcf.properties.example +++ b/dcf.properties.example @@ -1,6 +1,9 @@ # Bot display name general.bot_name = DCF Bot +# Bot owner ID +general.bot_owner = 123456789012345678 + # Plugins directory location general.plugins_dir = plugins diff --git a/src/main/java/net/pingex/dcf/core/Configuration.java b/src/main/java/net/pingex/dcf/core/Configuration.java index ea53e9b..c55e5f5 100644 --- a/src/main/java/net/pingex/dcf/core/Configuration.java +++ b/src/main/java/net/pingex/dcf/core/Configuration.java @@ -94,6 +94,11 @@ public class Configuration */ public static String COMMAND_PREFIX = "!"; + /** + * + */ + public static String BOT_OWNER = ""; + /** * Tells if the bot is configured to connect using a token or an username/password tuple. * @return Whether the main connection is a bot, or not @@ -112,6 +117,7 @@ public class Configuration PLUGINS_DIR = store.getString("general.plugins_dir", PLUGINS_DIR); DATA_DIR = store.getString("general.storage_dir", DATA_DIR); COMMAND_PREFIX = store.getString("commands.prefix", COMMAND_PREFIX); + BOT_OWNER = store.getString("general.bot_owner", BOT_OWNER); // Validate main connection username/password or token if(isConnectionToken())