Skip to content

Commit

Permalink
Tweetfeed improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnim committed Oct 3, 2023
1 parent defcabc commit bea406c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/tweetfeed/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def process(command, channel, username, params, files, conn):
else:
message += '| `N/A` '
message += '|\n'
message += '\n\n'
messages.append({'text': message})
if count>0:
message += '\n\n'
messages.append({'text': message})
if count>settings.LIMIT:
messages = [{'text': 'Tweetfeed search results exceeded the limit ('+str(count)+'/'+str(settings.LIMIT)+'). Raw JSON output:', 'uploads': [
{'filename': 'tweetfeed-'+params+'-'+datetime.datetime.now().strftime('%Y%m%dT%H%M%S')+'.json', 'bytes': response.content}
Expand Down

0 comments on commit bea406c

Please sign in to comment.