ClamSageCaleb / UNCC-SIX-MANS

The official 6 mans bot for the UNC Charlotte Rocket League Community
https://clamsagecaleb.github.io/UNCC-SIX-MANS/
MIT License
2 stars 0 forks source link

EPIC: As few messages as possible #30

Open mattwells19 opened 3 years ago

mattwells19 commented 3 years ago

This is the EPIC for tracking work for the next big step for interacting with Norm.

The initial idea behind deleting old messages when sending new ones was to keep the channel clean and reduce unnecessary bloat. We really only got halfway to that goal with the recent reactions update. To go all the way, Norm should only have a few messages that are always displayed, and whenever there's a new interaction, those embeds are updated with the new content.

Here's the current thought process:

More discussion is needed on the best way to accomplish this. More details to come.

mattwells19 commented 3 years ago

According to the docs embeds can be edited without removing them: https://discordpy.readthedocs.io/en/stable/api.html?highlight=edit#discord.Message.edit

This, with the use of new Discord buttons #28 would work out pretty well.

mattwells19 commented 3 years ago

In addition to buttons we can take advantage of the new select component when picking teams. https://discord.com/developers/docs/interactions/message-components#select-menus

mattwells19 commented 3 years ago

I designed some possible embed configurations. Designs are meant to get the idea across not to be perfectly 1-to-1. https://www.figma.com/file/qCp9eWR4f6LUIfDznxxS2h/As-Few-Messages-as-Possible?node-id=0%3A1

mattwells19 commented 3 years ago

Would be really cool to show report status on the Teams are Set embed. For instance when someone reports blue, the embed is updated to say "Waiting for confirmation... Tux reported Blue team as the winner"

N0ise9 commented 3 years ago

Would be really cool to show report status on the Teams are Set embed. For instance when someone reports blue, the embed is updated to say "Waiting for confirmation... Tux reported Blue team as the winner"

I like this idea a lot.