Hi there,
for Kabukibot it would be most awesome to have a way of getting the world records in a computer-readable format, e.g. via an RSS feed (that could be useful for others as well) or a small, read-only API. I would need the run time, the player name and the date for my bot. An RSS feed should have the video embedded as well, though.
Greetings, Sgt. Kabukiman
Kreygasm
Can you also provide a way to get all GTA records in one go (so basically all games of a certain category)? I don't mind making N requests, but 1 would be quicker ;-)
Piece of cake.
I had an idea for a !pb command; when called in a chat, it would check the current streamer, feed it to this API, it would look up the user by their Twitch name, and return their PB.
Also, for !pb and !wr commands, if no game is specified, perhaps you could make it detect the current game using the Twitch API.
Could also maybe set it up to return records in multiple categories if none is specified.
I was thinking about implementing an auto-detecting !wr command, but that would have several drawbacks:
- I would have to poll the Twitch API regularly. That means 1 request per channel per ... maybe 5 minutes? 10 minutes?
- The "game" info is not always correct (think if multi-game races or the streamer just forgetting changing it)
- I have to infer the category from the stream title. This might be simple for some cases (i think S. makes it pretty clear in his title, but others? Not always. And I have problems with doing language recognition ("GTA San Andreas cheat%" is what excatly? What about "GTA San Andreas (no, not 100%, but any%!)"?)
I specifically saw this "guess game from stream info" stuff in SauceBot, but decided against going down that road. It leads to all sorts of problems and misunderstandings.
Now, for the "!wr sa" command (the one where the user has to specify game and category). ¤That¤ could be done, even though I currently don't see much benefit from doing "!wr sa any" over "!wr_sa_any".
This could be a very useful thing once SRR becomes more popular and I would otherwise have to maintain a large lists of explicitly named commands (!wr_sa_any, !wr_sa_100, ...). But it opens the question, who should be able to use !wr and with what game? Do you want your chat to spam and test what possible arguments to !wr are allowed? Do you want to grant this for every game separately?
For now, I will concentrate on getting the API to feed my already existing commands. I've put the !wr stuff on the backlog though: https://trello.com/c/XA5Xlc4G/19-consider-a-generic-wr-command
I've implemented the auto-updating WRs based on the SRR API now. PogChamp
All GTA WRs are updated every 15 minutes. I also added IV, VCS and LCS to the command list (so !wr_lcs became available), but skipped GTA 1 & 2. Don't know why, just think nobody cares anyway :D
The API can usually take full names (or even partial names) too; see the 2nd post in this thread for Grand Theft Auto: Vice City. It will also try to do some close matches if the game name isn't exact. For example, "Vice City" will also return the same game as I just said.