diff options
-rw-r--r-- | bot.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -78,9 +78,10 @@ print(output) # Prepare the post -post = output.split('\n')[0] -if len(post) < 200: - post = output.split('\n')[0] + '\n' + output.split('\n')[1] +output = output.split('\n') +post = output[0] +if len(post) < 200 and len(output) > 1: + post = output[0] + '\n' + output[1] post = post[:500] |