Moved broken/abandoned plugins
This commit is contained in:
parent
9f95713443
commit
37475b364c
1 changed files with 0 additions and 19 deletions
|
@ -1,19 +0,0 @@
|
||||||
import re
|
|
||||||
from util import hook, http
|
|
||||||
from BeautifulSoup import BeautifulSoup
|
|
||||||
|
|
||||||
@hook.command(autohelp=False)
|
|
||||||
def wordu(inp, say=False, nick=False):
|
|
||||||
".word -- gets the word of the day
|
|
||||||
return "true"
|
|
||||||
page = http.get('http://merriam-webster.com/word-of-the-day')
|
|
||||||
|
|
||||||
soup = BeautifulSoup(page)
|
|
||||||
|
|
||||||
word = soup.find('strong', {'class' : 'main_entry_word'})
|
|
||||||
function = soup.find('p', {'class' : 'word_function'})
|
|
||||||
|
|
||||||
#definitions = re.findall(r'<span class="ssens"><strong>:</strong>'
|
|
||||||
# r' *([^<]+)</span>', content)
|
|
||||||
|
|
||||||
say("(%s) The word of the day is: \x02%s\x02 (%s)" % (nick, word, function))
|
|
Reference in a new issue