From 374cc307b178ad8e90daf34d586aeb6407ad4cfd Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 7 Dec 2019 10:23:17 +0000 Subject: remove -m/-M and BaseModule.command_line - it doesn't work any more --- bitbotd | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'bitbotd') 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): -- cgit v1.3.1-10-gc9f91