twohoursonelife / dictator

The Dictator of 2HOL. A Discord bot taking care of displaying user and player information about Two Hours One Life in our Discord guild.
https://twohoursonelife.com
The Unlicense
3 stars 6 forks source link

Player list to do #115

Open connorhsm opened 11 months ago

connorhsm commented 11 months ago

https://github.com/twohoursonelife/dictator/blob/master/dictator/cogs/stats.py

Importanter:

Nice to haves:

Eboubaker commented 11 months ago

How >1024 chars break it?

connorhsm commented 11 months ago

The Discord side breaks, message limit of 1024 characters. Need to implement pagination or alternate solutions to summarise. Such as "...and 4 other families with 5 total players"

connorhsm commented 6 months ago

Added task to run a secondary grouping after grouping by Eve ID to group by family name, this prevents excessive names showing during events or other uncommon cases where multiple Eves each name one another, resulting in them all having the same Family name but appearing in game-stats as: image

Moon's analysis https://discord.com/channels/423293333864054833/945265603093082152/1186317817709076561 So there is some spaghetti around the names in the server. It saves Lastname and (full) Name separately. A bug happens when a named mother's (EVE MOON) unnamed baby get named by somone with a different lastname (EVE BOT). Then the server has Lastname = MOON, and Name = BABY BOT. Game-stat uses Eve ID to group families, all good Target-family uses Lastname, can be different from the displayed name as stated above Hetuw uses Name. And it groups families in the following way: Separate My family from others by Eve ID, then group other families by last name (extracted from Name) (so lumping unrelated families with same name) . OHOL changed it so that adopted babies keep biological mother's lastname (unless that mother doesn't have one at the time) (in all case Lastname will be the same as in Name), probably will get that over here. That leaves the difference between Game-stat and Hetuw solely coming from how Hetuw groups the families -- Lumping all same-name-different-Eve families together vs not. Target-family ignores blood relations, uses Lastname only. So it is okay to lump all the Christmas families together then. (By this I mean, first group by Eve ID, then lump the resulting numbers together if the family name is the same)
connorhsm commented 6 months ago

Need to improve result when game server is offline, it simply never updates from the last report. Time of image is 8:35.

image