Plug-in to support LU Season
Posted: Sat Apr 03, 2021 11:39 pm
In case you're not aware, there's a League that's creating quite a bit of excitement and activity.
https://leaguesunited.org/season
There's a small problem though.
It's hard to know which player is on which team.
I don't have a suitable development environment available, so I was wondering if someone could be so kind as to jump in and help.
The details are held in a Google Sheet.
See here The Sheet.
It's possible to access the sheet with a simple URL call.
e.g.
Which gets the contents of the B column.
If you want to use this method, you'll need to sign up to Google Console and create an API Key. The Free Tier is enough. Don't publish your key though, as you don't want it to be used nefariously.
Alternatively, the sheet can be downloaded as a CSV and just process it locally within the plug-in.
The sheet will be updated as new players join.
Not sure how frequently this changes.
Doesn't need to be too fancy.
Something like
Of course, you can feel free to make it fancier if you wish.
Any takers?
https://leaguesunited.org/season
There's a small problem though.
It's hard to know which player is on which team.
I don't have a suitable development environment available, so I was wondering if someone could be so kind as to jump in and help.
The details are held in a Google Sheet.
See here The Sheet.
It's possible to access the sheet with a simple URL call.
e.g.
Code: Select all
https://sheets.googleapis.com/v4/spreadsheets/1DuNttGSSXWrVFcKVL61tiBVT6ezQFSSMHDhgLWll3mQ/values/Team%20Rosters!B:B?key=<MyApiKey-removed>
Code: Select all
{
"range": "'Team Rosters'!B1:B1000",
"majorDimension": "ROWS",
"values": [
[
"Orange Peanut"
],
[
"02345-xowu"
],
[
"brick2"
],
[
"CNT-FAI"
],
[
"Cole l"
],
[
"Crazy pal pig"
],
[
"etigah"
],
[
"Fear"
],
[
"FiringSquad"
],
[
"Frank the Tank"
],
[
"Hogfish"
],
[
"Ivano"
],
[
"Luz Mala"
],
[
"mammouth (mathiaz)"
],
[
"Mega EE"
],
[
"peracottaro"
],
[
"possum jenkins"
],
[
"quantumfoam"
],
[
"RIP"
],
[
"Shuist"
],
[
"THACO21"
],
[
"tox"
],
[
"zaa"
]
]
}
Alternatively, the sheet can be downloaded as a CSV and just process it locally within the plug-in.
The sheet will be updated as new players join.
Not sure how frequently this changes.
Doesn't need to be too fancy.
Something like
Code: Select all
/LU
LeaguesUnited Players on this server:
Orange Peanut: Orange Peanut, FiringSquad, zaa
Gaboot: leviathan, catay
Moroni:
plop: lep
Any takers?