Use send.stdout in modules/in.py

This commit is contained in:
jesopo 2018-11-21 20:05:08 +00:00
parent 2852afd5f7
commit bac4ba89b7

View file

@ -33,6 +33,8 @@ class Module(ModuleManager.BaseModule):
def timer_due(self, event): def timer_due(self, event):
server = self.bot.get_server(event["server_id"]) server = self.bot.get_server(event["server_id"])
if server: if server:
server.send_message(event["target"], message = "%s: this is your reminder: %s" % (
"%s, this is your reminder: %s" % ( event["nickname"], event["message"])
event["nickname"], event["message"])) target = server.get_target(event["target"])
self.events.on("send.stdout").call(target=target, module_name="In",
server=server, message=message)