Conflicts:
	irc.py
	modules/oblique.py
	modules/startup.py
master
mutantmonkey 2012-02-17 22:10:05 -05:00
commit 09e26155ce
4 changed files with 7 additions and 3 deletions

2
irc.py
View File

@ -51,7 +51,7 @@ class Bot(asynchat.async_chat):
# asynchat.async_chat.push(self, *args, **kargs)
def __write(self, args, text=None):
# print '%r %r %r' % (self, args, text)
# print 'PUSH: %r %r %r' % (self, args, text)
try:
if text is not None:
# 510 because CR and LF count too, as nyuszika7h points out

View File

@ -43,6 +43,8 @@ def service(phenny, input, command, args):
lines = bytes.splitlines()
if not lines:
return phenny.reply("Sorry, the service didn't respond any output.")
try: line = lines[0].encode('utf-8')[:350]
except: line = lines[0][:250]
phenny.say(lines[0][:350])
def refresh(phenny):

View File

@ -58,11 +58,12 @@ def startup(phenny, input):
if hasattr(phenny.config, 'password'):
phenny.msg('NickServ', 'IDENTIFY %s' % phenny.config.password)
__import__('time').sleep(5)
time.sleep(5)
# Cf. http://swhack.com/logs/2005-12-05#T19-32-36
for channel in phenny.channels:
phenny.write(('JOIN', channel))
time.sleep(0.5)
startup.rule = r'(.*)'
startup.event = '251'
startup.priority = 'low'

3
phenny
View File

@ -123,7 +123,8 @@ def main(argv=None):
# Step Two: Check Dependencies
check_python_version() # require python2.4 or later
check_dotdir() # require ~/.phenny, or make it and exit
if not opts.config:
check_dotdir() # require ~/.phenny, or make it and exit
# Step Three: Load The Configurations