rayzrdev / Gameboi

A simple Discord bot made for Discord Hack Week 2019 with a plethora of small games you can play, as well as a global currency and rewards system!
MIT License
81 stars 13 forks source link

Cache rendered matches in memory and serve via web API #7

Closed rayzr522 closed 3 years ago

rayzr522 commented 3 years ago

as has been discussed for ages, it's generally a better UX to edit the game message rather than deleting and sending a new one each time. this implements that, by using Javalin to run a webserver that is capable of serving the rendered images. this also improves the UX by removing the need for:

  1. re-adding emojis each time
  2. waiting for the attachment to send to discord
  3. deleting a message

therefore greatly improving the speed at which match renders can be updated. the image size still matters as it's a poor UX if the preview takes long to load, but the embed is able to be edited nearly instantaneously.

current UX hurdles that still require solutions before being released: