Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import botlib
- import urllib
- import BeautifulSoup
- class StaffBot(botlib.Bot):
- def __init__(self, server, channel, nick, password=None):
- botlib.Bot.__init__(self, server, 6667, channel, nick)
- if password != None:
- self.protocol.privmsg("nickserv", "identify" % password)
- def __actions__(self):
- botlib.Bot.__actions__(self)
- if botlib.check_found(self.data, ".downloads"):
- username = self.get_username()
- self.protocol.privmsg(self.channel, "%s: response" % username)
- if __name__ == "__main__":
- StaffBot("irc.rizon.net", "#chan", "nick").run()
- Bot().start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement