From 37475b364cbd781001b12d7b5cb166ab9cf18f90 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 20 Feb 2012 15:53:13 +1300 Subject: [PATCH] Moved broken/abandoned plugins --- plugins/word.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 plugins/word.py diff --git a/plugins/word.py b/plugins/word.py deleted file mode 100644 index 6b2ac12..0000000 --- a/plugins/word.py +++ /dev/null @@ -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':' - # r' *([^<]+)', content) - - say("(%s) The word of the day is: \x02%s\x02 (%s)" % (nick, word, function)) \ No newline at end of file