Skip to content

Commit

Permalink
Reverse message sending in order of new
Browse files Browse the repository at this point in the history
  • Loading branch information
iiLaurens committed Jun 10, 2018
1 parent 93535c2 commit a7fa1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ticketspy/ticketspy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def update(bot):
db.update_db(p.storage)
new = [json.loads(x) for x in db.get_new()]

for i in new:
for i in reversed(new):
bot.send(f"<a href='{i['url']}'>{i['text']}</a>")


Expand Down

0 comments on commit a7fa1dd

Please sign in to comment.