Advertisement
Porygon

[PN] Phenny VERSION Module

Jan 3rd, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. #!/usr/bin/env python
  2. """
  3. ver.py - Phenny VERSION Module
  4. """
  5.  
  6. # Variables
  7. verq    = "\x01VERSION\x01"                 # Defines a VERSION request.
  8. noti    = "NOTICE"                      # Performs a NOTICE command.
  9. reply   = "\x01VERSION Porygon 1.0.4\x01"           # Defines the VERSION reply.
  10.  
  11.  
  12. # Replies to any requested VERSION requests.
  13.  
  14. def ver(phenny, input):
  15.    phenny.write((noti, input.nick), reply)
  16. ver.rule = verq
  17.  
  18. if __name__ == '__main__':
  19.    print __doc__.strip()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement