Throttle channel joins
This commit is contained in:
@@ -43,7 +43,9 @@ def service(phenny, input, command, args):
|
||||
lines = bytes.splitlines()
|
||||
if not lines:
|
||||
return phenny.reply("Sorry, the service didn't respond any output.")
|
||||
phenny.say(lines[0][:350])
|
||||
try: line = lines[0].encode('utf-8')[:350]
|
||||
except: line = lines[0][:250]
|
||||
phenny.say(line)
|
||||
|
||||
def refresh(phenny):
|
||||
if hasattr(phenny.config, 'services'):
|
||||
|
||||
Reference in New Issue
Block a user