Bläddra i källkod

Update triggers for !urban; update README.

pull/15/head
Ben Kurtovic 9 år sedan
förälder
incheckning
457d8fbe42
2 ändrade filer med 10 tillägg och 2 borttagningar
  1. +9
    -0
      README.md
  2. +1
    -2
      commands/urbandictionary.py

+ 9
- 0
README.md Visa fil

@@ -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 Visa fil

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


Laddar…
Avbryt
Spara