Not sure what the right place for this is either.
One of the things I do daily that is not, as far as I know, automated or otherwise supported by mafia is to check the various leaderboards and see if I am on any of them. Changing that is something that might be moving off of the back burner.
My first idea was to embed the check within mafia. The new code would check and write something like "Fronobulax appears in the Weird Leaderboard page." in the Events/Announcements window. Aside from the fact that I'm not quite comfortable with the portion of the mafia codebase I would have to use, when the obvious enhancement requests are made - look for my friends, contacts or my clannies - the feature has the potential to require a user interface or take a lot of time during log in. Neither of those are especially desirable.
An alternative that I am getting more comfortable with would be a script. I think the general approach would be to visit each page that has leaderboards, search for names, and then report. The names could be in a text or parameter file that would be initially populated with just the player's name. The user would edit the file if other names should be checked. The gotcha would be in the string search. Inevitably whatever I implement first will either choke because there is a player name like FronobulaxMulti or because player names can have whitespace or other characters that are often used as delimiters.
Thoughts? Suggestions? Alternatives? Pointers to where it has already been done?
Thanks.
One of the things I do daily that is not, as far as I know, automated or otherwise supported by mafia is to check the various leaderboards and see if I am on any of them. Changing that is something that might be moving off of the back burner.
My first idea was to embed the check within mafia. The new code would check and write something like "Fronobulax appears in the Weird Leaderboard page." in the Events/Announcements window. Aside from the fact that I'm not quite comfortable with the portion of the mafia codebase I would have to use, when the obvious enhancement requests are made - look for my friends, contacts or my clannies - the feature has the potential to require a user interface or take a lot of time during log in. Neither of those are especially desirable.
An alternative that I am getting more comfortable with would be a script. I think the general approach would be to visit each page that has leaderboards, search for names, and then report. The names could be in a text or parameter file that would be initially populated with just the player's name. The user would edit the file if other names should be checked. The gotcha would be in the string search. Inevitably whatever I implement first will either choke because there is a player name like FronobulaxMulti or because player names can have whitespace or other characters that are often used as delimiters.
Thoughts? Suggestions? Alternatives? Pointers to where it has already been done?
Thanks.