aboutsummaryrefslogtreecommitdiff
path: root/bitbotd
diff options
context:
space:
mode:
authorGravatar jesopo2019-12-07 10:23:17 +0000
committerGravatar jesopo2019-12-07 10:23:17 +0000
commit374cc307b178ad8e90daf34d586aeb6407ad4cfd (patch)
treeb26bdbe6cee2d9108d60c105cd601601157dbf30 /bitbotd
parentadd `dataclasses==0.6` to requirements.txt (diff)
remove -m/-M and BaseModule.command_line - it doesn't work any more
Diffstat (limited to 'bitbotd')
-rwxr-xr-xbitbotd10
1 files changed, 0 insertions, 10 deletions
diff --git a/bitbotd b/bitbotd
index 97ae8cb2..e9f80085 100755
--- a/bitbotd
+++ b/bitbotd
@@ -41,10 +41,6 @@ arg_parser.add_argument("--verbose", "-V", action="store_true")
arg_parser.add_argument("--log-level", "-L")
arg_parser.add_argument("--no-logging", "-N", action="store_true")
-arg_parser.add_argument("--module", "-m",
- help="Execute an action against a specific module")
-arg_parser.add_argument("--module-args", "-M",
- help="Arguments to give in action against a specific module")
arg_parser.add_argument("--external", "-e", help="External modules directory")
arg_parser.add_argument("--startup-disconnects", "-D",
@@ -144,12 +140,6 @@ control = Control.Control(bot, sock_location)
control.bind()
bot.add_poll_source(control)
-if args.module:
- definition = modules.find_module(args.module)
- module = modules.load_module(bot, definition)
- module.module.command_line(args.module_args)
- sys.exit(0)
-
server_configs = bot.database.servers.get_all()
if len(server_configs):