p2r3 / epochtal

Portal 2 tournament framework
https://epochtal.p2r3.com/
GNU General Public License v3.0
8 stars 4 forks source link

Send rendered pictures to discord #57

Open PancakeTAS opened 3 months ago

PancakeTAS commented 3 months ago

The idea is that players are able to grab more information without having to open the website just by looking at the discord. This is achieved by sending a nice looking picture alongside the announcements by the discord bot.

As of right now, these are all announcements made on the discord:

Here's the change I propose for "Epochtal week started": When the week starts, send a picture identical to the "This Week's Map" display on the website, alongside the message. This makes it much easier to decipher which map was picked, due to the added thumbnail as well as the clearly separated by line title and author. Additionally one can easily see how favorable a map was through up/downvotes. Additional information can always be added, lmk if you have an idea what to put here.

Here's the change I propose for "Submissions to the leaderboard": After each submission, the run just above and below should be shown in a leaderboard-style just like on the website, with additional indicators marking that another player has lost a place and got moved downwards. Perhaps even show two runs below on placement change, I will have to tinker around with what looks nice. Also perhaps, a line indicating how many places the submitting player moved up would be neat. For non-scored categories, simply posting the run with it's comment in leaderboard-style should be plenty, though I'm open for suggestions.

As for "Leaderboard locked at end of week", I'm not sure what to do here. One idea is to post the top 3 or top 5 players in a picture, as with discord stupid formatting, showing the entire leaderboard or generally just a dynamic amount, risks getting put into this silly frame where half the picture is not visible. Since epochtal does not have a ""main"" category, how should we determine which categories are posted on the discord? Multiple pictures sent in multiple messages for all scored categories? Or just the very first scored category in the list of categories?

"Failed routine calls" are in my opinion already formatted as neatly as they can be.

"Demo reports summary" is probably too complex to generate pictures for and isn't particularly hard to read anyways, so I would leave this one untouched as it is.

Maybe-potentially-out-of-scope-but-cool would be the addition of new messages. The stream announcement could be sent through the bot as well. I'm thinking maybe adding a neat picture containing a short summary of the amount of runs in each category that will be shown on stream would be cool? I would add this to the leaderboard locked message, however I feel that one will become to cluttered. Additionally, knowing what's shown on stream sounds more like the fitting place for this.

Lots of room for discussion, leave thoughts plz!!

P.S: is this frontend, technically?

soni801 commented 3 months ago

I love this idea. I don't have that much feedback to give before seeing what you're making for all of them. (maybe post the images here in the issue as you implement them?) What i've seen in discord so far is good tho.

I don't think the leaderboard lock really needs an image, i'm actually really unsure here too.

I also don't think the stream announcement makes sense as a part of epochtal, even though I like the idea. I think the better option here is to keep it as is today, where the organizer posts stream updates.

p2r3 commented 3 months ago

I think this is a good opportunity to render some more detailed statistics that would be otherwise overwhelming on the website. There were talks about displaying point deltas some time ago, for example. That could be done for the leaderboard locking notification - rendering the point deltas of that week's participants.

For board updates, time (and portal) deltas would be nice if not already considered. Either for the runs which are above and below, or for that player's previous PB. Or both! Whatever you think fits design-wise.

The map announcement being the homepage card feels a bit... dry, I guess. There's not a lot of information there, but I also can't think of anything we could realistically add. If only there was a way to calculate an "estimated run length" somehow, that'd be really cool. Though admittedly outside of the scope of this PR. I'll ponder.

Fully agree with @soni801 as well - Twitch streams aren't a part of the Epochtal framework.