module.load_module takes a ModuleDefinition these days!

This commit is contained in:
jesopo 2019-05-30 17:28:07 +01:00
parent f7f476e40b
commit 3456bb561c

View file

@ -77,7 +77,8 @@ bot = IRCBot.Bot(directory, args, cache, config, database, events,
exports, log, modules, timers)
if args.module:
module = modules.load_module(bot, args.module)
definition = modules.find_module(args.module)
module = modules.load_module(bot, definition)
module.module.command_line(args.module_args)
sys.exit(0)