# Look up the definition of something using google
def defineq(bot, cmd, nick, conn, public):
+ #this doesn't work any more
+ bot.automsg(public,nick,"'define' is broken because google are bastards :(")
+ return
cmdrest = string.join(cmd.split()[1:])
targ = ("http://www.google.co.uk/search?q=define%%3A%s&ie=utf-8&oe=utf-8"
% urllib.quote_plus(cmdrest))
tweeter_screen = status.user.screen_name.encode('UTF-8', 'replace')
tweeter_name = status.user.name.encode('UTF-8', 'replace')
tweetText = status.text.encode('UTF-8', 'replace')
+ tweetText = tweetText.replace('\n',' ')
stringout = "tweet by %s (%s): %s" %(tweeter_screen,tweeter_name,tweetText)
except twitter.TwitterError:
terror = sys.exc_info()