Sfoglia il codice sorgente

Update triggers for !urban; update README.

pull/15/head
Ben Kurtovic 9 anni fa
parent
commit
457d8fbe42
2 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. +9
    -0
      README.md
  2. +1
    -2
      commands/urbandictionary.py

+ 9
- 0
README.md Vedi File

@@ -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 Vedi File

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


Caricamento…
Annulla
Salva