default answer shortened; 'info' as new command
This commit is contained in:
@@ -184,10 +184,14 @@ def parse_commands(data):
|
|||||||
else:
|
else:
|
||||||
chat_write(reply_user + ''': pong''')
|
chat_write(reply_user + ''': pong''')
|
||||||
logger('info', 'sent pong')
|
logger('info', 'sent pong')
|
||||||
else:
|
elif 'info' in data:
|
||||||
if ratelimit_exceeded(): return False
|
if ratelimit_exceeded(): return False
|
||||||
chat_write(reply_user + (''': I'm a bot, my job is to extract <title> tags from posted URLs. In case I'm annoying or for further questions, please talk to my master Cae. I'm rate limited and shouldn't post more than %d messages per %d seconds. To make me exit immediately, highlight me with 'hangup' in the message (emergency only, please).''' %(hist_max_count, hist_max_time)))
|
chat_write(reply_user + (''': I'm a bot, my job is to extract <title> tags from posted URLs. In case I'm annoying or for further questions, please talk to my master Cae. I'm rate limited and shouldn't post more than %d messages per %d seconds. To make me exit immediately, highlight me with 'hangup' in the message (emergency only, please).''' %(hist_max_count, hist_max_time)))
|
||||||
logger('info', 'sent info')
|
logger('info', 'sent long info')
|
||||||
|
else:
|
||||||
|
if ratelimit_exceeded(): return False
|
||||||
|
chat_write(reply_user + (''': I'm a bot (highlight me with 'info' for more information).'''))
|
||||||
|
logger('info', 'sent short info')
|
||||||
|
|
||||||
def parse_delete(filepath):
|
def parse_delete(filepath):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user