Explorar el Código

Update triggers for !urban; update README.

pull/15/head
Ben Kurtovic hace 11 años
padre
commit
457d8fbe42
Se han modificado 2 ficheros con 10 adiciones y 2 borrados
  1. +9
    -0
      README.md
  2. +1
    -2
      commands/urbandictionary.py

+ 9
- 0
README.md Ver fichero

@@ -37,6 +37,15 @@ IRC Commands
`"praises"` with the key `"earwig"` and the value `"praises"` with the key `"earwig"` and the value
`"Earwig is the bestest Python programmer ever!"`. `"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 Bot Tasks
--------- ---------




+ 1
- 2
commands/urbandictionary.py Ver fichero

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


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


Cargando…
Cancelar
Guardar