Added general.bot_owner config key.

keep-around/d31701866686f66088b78de2e29736ae36e55a68
Pingex aka Raphaël 9 years ago
parent 82c081cd3c
commit 073d2455cb

@ -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

@ -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())