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