diff options
| author | 2019-12-07 10:23:17 +0000 | |
|---|---|---|
| committer | 2019-12-07 10:23:17 +0000 | |
| commit | 374cc307b178ad8e90daf34d586aeb6407ad4cfd (patch) | |
| tree | b26bdbe6cee2d9108d60c105cd601601157dbf30 | |
| parent | add `dataclasses==0.6` to requirements.txt (diff) | |
| signature | ||
remove -m/-M and BaseModule.command_line - it doesn't work any more
| -rwxr-xr-x | bitbotd | 10 | ||||
| -rw-r--r-- | src/ModuleManager.py | 3 |
2 files changed, 0 insertions, 13 deletions
@@ -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): diff --git a/src/ModuleManager.py b/src/ModuleManager.py index 5ef57b73..2cbc3935 100644 --- a/src/ModuleManager.py +++ b/src/ModuleManager.py @@ -65,9 +65,6 @@ class BaseModule(object): def on_resume(self): pass - def command_line(self, args: str): - pass - class ModuleDefinition(object): def __init__(self, name: str, |
