remove -m/-M and BaseModule.command_line - it doesn't work any more
This commit is contained in:
parent
8ebde7b1c7
commit
374cc307b1
2 changed files with 0 additions and 13 deletions
10
bitbotd
10
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):
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue