Advertisement
Guest User

Untitled

a guest
Aug 17th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import botlib
  4. import urllib
  5. import BeautifulSoup
  6.  
  7. class StaffBot(botlib.Bot):
  8. def __init__(self, server, channel, nick, password=None):
  9. botlib.Bot.__init__(self, server, 6667, channel, nick)
  10.  
  11. if password != None:
  12. self.protocol.privmsg("nickserv", "identify" % password)
  13. def __actions__(self):
  14. botlib.Bot.__actions__(self)
  15.  
  16. if botlib.check_found(self.data, ".downloads"):
  17. username = self.get_username()
  18.  
  19. self.protocol.privmsg(self.channel, "%s: response" % username)
  20.  
  21. if __name__ == "__main__":
  22. StaffBot("irc.rizon.net", "#chan", "nick").run()
  23. Bot().start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement