Преглед изворни кода

Update and rename dictionary.py to urbandictionary.py

pull/9/head
Ben Kurtovic пре 11 година
родитељ
комит
4488046127
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      commands/urbandictionary.py

commands/dictionary.py → commands/urbandictionary.py Прегледај датотеку

@@ -10,7 +10,7 @@ from urllib2 import urlopen
from earwigbot.commands import Command

class UrbanDictionary(Command):
"""Get the real definition of a word."""
"""Get the definition of a word using Urban Dictionary."""
name = "urban"
commands = ["dictt", "definee", "defne", "dct", "ud"]

@@ -32,5 +32,5 @@ class UrbanDictionary(Command):
msg = 'Here are some close matches...: {0}'.format(', '.join(l))
self.reply(data, msg)
else:
self.reply(data, 'Sorry, no results found :(')
self.reply(data, 'Sorry, no results found.')


Loading…
Откажи
Сачувај