add ,utcnow

This commit is contained in:
Ben Harris 2020-07-19 15:36:29 -04:00
parent 1d41766c13
commit 09e8d6c41c
1 changed files with 5 additions and 0 deletions

View File

@ -299,3 +299,8 @@ class Module(ModuleManager.BaseModule):
event["stdout"].write(
f"my primary channel is {CHANNEL} and i will send dj announcements to {NOTIFY_CHANNELS}"
)
@utils.hook("received.command.utcnow")
@utils.kwarg("help", "show current utc time")
def utcnow(self, event):
event["stdout"].write(utils.datetime.format.datetime_human(utils.datetime.utcnow()))