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