Advertisement
Aha2Y

Untitled

Apr 2nd, 2012
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1.                   if raw[3].startswith(".slogan "):
  2.                      slogan_topic = raw[3].split(" ", 1)[1]
  3.                      slogan_url = urllib.urlopen("http://parsers.faux-bot.com/slogan/%s" % slogan_topic)
  4.                      slogansoup = BeautifulSoup(slogan_url)
  5.                      x = str(slogansoup)
  6.                      x = x.split()
  7.                      slogan = " ".join(x[1:]).strip("End Response:")
  8.                      irc.send('PRIVMSG %s :[Slogan] %s\r\n' % (raw[2], slogan))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement