From 496cb2c1916a65c4466f59cb94bbb46e514e9116 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Thu, 4 Aug 2011 22:15:37 -0500 Subject: [PATCH] latest changes to botconfig.py --- botconfig.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/botconfig.py b/botconfig.py index e7895be..ac8e670 100644 --- a/botconfig.py +++ b/botconfig.py @@ -7,4 +7,13 @@ OWNERS = ("unaffiliated/wolfbot_admin1",) # the comma is required at the end if ADMINS = ("unaffiliated/wolfbot_admin2", "unaffiliated/wolfbot_admin3") CMD_CHAR = "!" CHANGING_HOST_QUIT_MESSAGE = "Changing host" -DEBUG_MODE = False \ No newline at end of file +JOIN_AFTER_CLOAKED = True # Set to false if the bot does not have a cloak +DISABLE_DEBUG_MODE = False # Entirely disable debug mode + +# Argument --debug means start in debug mode +import argparse +parser = argparse.ArgumentParser() +parser.add_argument('--debug', action='store_true') + +args = parser.parse_args() +DEBUG_MODE = args.debug if not DISABLE_DEBUG_MODE else False \ No newline at end of file