do send.stdout event call in bot.trigger func param

This commit is contained in:
jesopo 2018-10-07 08:03:58 +01:00
parent a77a985d5d
commit fab3caa7be

View file

@ -40,6 +40,6 @@ class Module(ModuleManager.BaseModule):
server = self.bot.get_server(server_id)
channel = server.get_channel(channel_name)
self.events.on("send.stdout").call(target=channel,
module_name="Github", server=server, message=line)
self.bot.trigger()
self.bot.trigger(lambda: self.events.on("send.stdout"
).call(target=channel, module_name="Github",
server=server, message=line))