Skip to content
Snippets Groups Projects
Commit 171dcdb0 authored by Bruce Cowan's avatar Bruce Cowan
Browse files

Custom datetime formatting

parent 23341bb1
No related branches found
No related tags found
No related merge requests found
......@@ -18,3 +18,9 @@ class Datetime(BotPlugin):
@botcmd
def time(self, message, args):
return "The time is " + self._get_date_time('%X')
@botcmd
def strftime(self, message, args):
if not args:
return "**Usage**: !datetime strftime <format>"
return "The date and time is " + self._get_date_time(args)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment