Phenny2, now being tested on Freenode as the main phenny.

This commit is contained in:
Sean B. Palmer
2008-02-21 12:06:33 +00:00
commit 7931fab145
26 changed files with 6610 additions and 0 deletions

23
modules/startup.py Normal file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python
"""
startup.py - Phenny Startup Module
Copyright 2008, Sean B. Palmer, inamidst.com
Licensed under the Eiffel Forum License 2.
http://inamidst.com/phenny/
"""
def startup(phenny, input):
if hasattr(phenny.config, 'password'):
phenny.msg('NickServ', 'IDENTIFY %s' % phenny.config.password)
__import__('time').sleep(5)
# Cf. http://swhack.com/logs/2005-12-05#T19-32-36
for channel in phenny.channels:
phenny.write(('JOIN', channel))
startup.rule = r'(.*)'
startup.event = '251'
startup.priority = 'low'
if __name__ == '__main__':
print __doc__.strip()