Sfoglia il codice sorgente

Merge pull request #49 from legoktm/patch-3

Make !date an alias for !time
tags/v0.2
Ben Kurtovic 12 anni fa
parent
commit
f8dd0e10b1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      earwigbot/commands/time_command.py

+ 1
- 1
earwigbot/commands/time_command.py Vedi File

@@ -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"]:


Caricamento…
Annulla
Salva