Przeglądaj źródła

Update triggers for !urban; update README.

pull/15/head
Ben Kurtovic 8 lat temu
rodzic
commit
457d8fbe42
2 zmienionych plików z 10 dodań i 2 usunięć
  1. +9
    -0
      README.md
  2. +1
    -2
      commands/urbandictionary.py

+ 9
- 0
README.md Wyświetl plik

@@ -37,6 +37,15 @@ IRC Commands
`"praises"` with the key `"earwig"` and the value
`"Earwig is the bestest Python programmer ever!"`.

- **urbandictionary**: looks up terms on
[Urban Dictionary](https://www.urbandictionary.com/). Separated from the main
command list because these are often distasteful or unwanted.

- **weather**: gives current weather information for a location from
[Weather Underground](http://www.wunderground.com/). Requires an API key
stored in its config as `"apiKey"`, which should be stored encrypted if that
option is enabled.

Bot Tasks
---------



+ 1
- 2
commands/urbandictionary.py Wyświetl plik

@@ -13,8 +13,7 @@ from earwigbot.commands import Command
class UrbanDictionary(Command):
"""Get the definition of a word or phrase using Urban Dictionary."""
name = "urban"
commands = ["urban", "urbandictionary", "dictt", "definee", "defne", "dct",
"ud"]
commands = ["urban", "urbandictionary", "dct", "ud"]

def process(self, data):
if not data.args:


Ładowanie…
Anuluj
Zapisz