add ,utcnow
This commit is contained in:
parent
1d41766c13
commit
09e8d6c41c
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue