Feedback / Bug Report / Suggestion: Suggestion
Priority: Very Low
Description:
I've been making use of the .json for a discord bot recently, much similar to the bot that is in the SC discord. Although there are a few things I'd like to see done on the .json, a few of them are things I'd notice Arxos already mentioned in the past.
1. More explanatory variable names
- State's setup is currently looking like this:
Which is super confusing, stats is similar, although it makes more sense:
Instead I propose changing them to be longer and more explanatory of what their use is (as it doesn't particularly hurt)
2. Tournament specific .json
- Currently all the tournament information is situated entirely in state.json, instead having a specific tournament.json with all the information (including the actual bracket link) would clutter each individual json less, this could be made into:
This would ultimately transform into:
https://spriteclub.challonge.com/tournament_23283.svg
This would, obviously, eliminate the tournament bits of state.json so it would only look like this:
3. Exhibition specific .json
- In the discord where my own .json reading bot is located, I ping people when their favorite characters appear in matches, however it would also be nice to ping when certain exhibitions appear. Sometimes I might be busy, but would like to know when a friend's exhibition appears in exhibition, I could ask them to ping me when, or check whenever the sound effect of a new match starts, but I'd prefer it to be simpler. The Exhibition json would contain no more information than what you would get from the individual's exhibition if you were to check the queue anyway. Therefore:
The last two are obviously not as important or useful as the first three, but it wouldn't hurt to add if all the information comes from the same place. Ultimately as an example here's what it would look like complete:
These are but a few ideas I had for improving the .json (for now), going forward I may have more ideas, but these are mostly basic changes for now.
Thanks!
Priority: Very Low
Description:
I've been making use of the .json for a discord bot recently, much similar to the bot that is in the SC discord. Although there are a few things I'd like to see done on the .json, a few of them are things I'd notice Arxos already mentioned in the past.
1. More explanatory variable names
- State's setup is currently looking like this:
Quote:{"s":"<type>","r":"<red team>","b":"<blue team>","a":"<matches left>","B":"bracket","T":0}(I would use code tags, but it's kinda broken)
Which is super confusing, stats is similar, although it makes more sense:
Quote:{"p1":{"n":"<name>","p":"<pal>","a":"<author>","t":"<division>","L":<life>,"P":<meter>,"A":<attack>,"D":<defense>}}
Instead I propose changing them to be longer and more explanatory of what their use is (as it doesn't particularly hurt)
Quote:{"State":"<type>","Red":"<red team>","Blue":"<blue team>","Left":"<matches left>","Bracket(?)":"bracket","Tournament":0}
Quote:{"p1":{"Name":"<name>","Palette":"<pal>","Author":"<author>","Division (Type?)":"<division>","Life":<life>,"Power":<meter>,"Attack":<attack>,"Defense":<defense>}}
2. Tournament specific .json
- Currently all the tournament information is situated entirely in state.json, instead having a specific tournament.json with all the information (including the actual bracket link) would clutter each individual json less, this could be made into:
Quote:{"Session":"<type> (ex: Single Elimination 1v1 (Maybe include rating/division if not Type?))","Type":"<type> (ex: 2nd Division)","ID":0 (ex: 23283),"Bracket":"<link> (ex: https://spriteclub.challonge.com/tournament_23283)"}
This would ultimately transform into:
Quote:{"Session":"Single Elimination 1v1","Type":"2nd Division","ID":23283,"Bracket":"https://spriteclub.challonge.com/tournament_23283"}The image of the tournament could then be gotten by just adding .svg to the bracket url as such:
https://spriteclub.challonge.com/tournament_23283.svg
This would, obviously, eliminate the tournament bits of state.json so it would only look like this:
Quote:{"State":"<type>","Red":"<red team>","Blue":"<blue team>","Left":"<matches left>"}
3. Exhibition specific .json
- In the discord where my own .json reading bot is located, I ping people when their favorite characters appear in matches, however it would also be nice to ping when certain exhibitions appear. Sometimes I might be busy, but would like to know when a friend's exhibition appears in exhibition, I could ask them to ping me when, or check whenever the sound effect of a new match starts, but I'd prefer it to be simpler. The Exhibition json would contain no more information than what you would get from the individual's exhibition if you were to check the queue anyway. Therefore:
Quote:{"Creator":"<name> (ex: Snack)","Date":"<Date Created> (ex: 04/09)","Message":"<comment> (ex: Random 4th Division 12p)","Stage":"<Custom Stage, if applicable> (ex: Burning Osaka CVS2)","Music":"<Custom Music, if applicable> (ex: Dokken - Into The Fire)"}
The last two are obviously not as important or useful as the first three, but it wouldn't hurt to add if all the information comes from the same place. Ultimately as an example here's what it would look like complete:
Quote:{"Creator":"Snack","Date":"04/09","Message":"Random 4th Division 12p","Stage":"Burning Osaka CVS2","Music":"Dokken - Into The Fire"}
These are but a few ideas I had for improving the .json (for now), going forward I may have more ideas, but these are mostly basic changes for now.
Thanks!