OpenPerpetuum / OPDiscordBot

A repository featuring discord bot(s) designed to consume OpenPerpetuum API(s) to display and interact with the Perpetuum Discord.
1 stars 2 forks source link

Display messages in order of kills #3

Open MikeJeffers opened 4 years ago

MikeJeffers commented 4 years ago

Right now it processes any new kills in the order received from the API (or it is thrown into a dictionary at some point, and loses all order) Consider sorting by date such that the latest message, or kill in the kill-message as posted is on the bottom, with later kills ascending

rvincent-nz commented 4 years ago

At the moment it's going into a list, and seems to be writing the most recent first. Reversing the list before posting should solve this, and I'll test it on a local version.