from_pretty_time was moved to utils.datetime

This commit is contained in:
jesopo 2019-11-17 19:48:05 +00:00
parent 79a6fd6609
commit 0d4ddb709e

View file

@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule):
@utils.kwarg("help", "Set a reminder")
@utils.kwarg("usage", "<time> <message>")
def in_command(self, event):
seconds = utils.from_pretty_time(event["args_split"][0])
seconds = utils.datetime.from_pretty_time(event["args_split"][0])
message = " ".join(event["args_split"][1:])
if seconds:
if seconds <= SECONDS_MAX: