please add flausch handling of !exec-on-peer
@@ -163,7 +163,12 @@ def ffpb_remoteexec(bot, trigger):
bot.say('exec-on-peer(' + target_name + '): No output')
return
- bot.say('exec-on-peer(' + target_name + '): ' + str(len(lines)) + ' Zeilen (zeige max. 8):')
+ msg = 'exec-on-peer(' + target_name + '): ' + str(len(lines)) + ' Zeilen'
+ if len(lines) > 8:
+ msg += ' (zeige max. 8)')
+
+ bot.say(msg + ':')
for line in lines[0:8]:
bot.say(line)