Преглед изворни кода

Make !date an alias for !time

tags/v0.2
Kunal Mehta пре 12 година
родитељ
комит
a19a88bd7c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      earwigbot/commands/time_command.py

+ 1
- 1
earwigbot/commands/time_command.py Прегледај датотеку

@@ -33,7 +33,7 @@ class Time(Command):
"""Report the current time in any timezone (UTC default), UNIX epoch time, """Report the current time in any timezone (UTC default), UNIX epoch time,
or beat time.""" or beat time."""
name = "time" name = "time"
commands = ["time", "beats", "swatch", "epoch"]
commands = ["time", "beats", "swatch", "epoch", "date"]


def process(self, data): def process(self, data):
if data.command in ["beats", "swatch"]: if data.command in ["beats", "swatch"]:


Loading…
Откажи
Сачувај