[CustomAPI] Faceit elo, daily gain / loss and current match est. gain / loss

Asked Jan 31, 2021·16 replies·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hello,

I have published a few commands for a close friend based on a discord bot I wrote. One of these commands is related to faceit users elo and most importantly recent elo gains / losses. If anyone should be interested in this command you are most welcome to use it. I recently added a check for the current games estimated win / loss.

Simple usage:

Example response:
```Elo: 2857, Today: +17, Current est. Win: +19 Loss: -31```
Another commonly asked format including daily wins and losses:
```$(eval const o = $(urlfetch json https://wombot.fi/nightbot/elo/USERNAME?format=full); o.message || `Level ${o.level} | ${o.elo} Elo | ${o.eloDiff > 0? "+" : ""}${o.eloDiff} today | ${o.recentMatches.filter(m=> m.teamId === m.i2).length} Wins | ${o.recentMatches.filter(m=> m.teamId !== m.i2).length} Losses ${(o.estWin && o.estLoss) ? `| Est Win: +${o.estWin}, Est Loss: -${o.estLoss}` : ""}`)```
Which responds with the following:
```Level 2 | 840 Elo | +7 today | 1 Wins | 0 Losses | Est Win: +24, Est Loss: -26```
Advanced usage (For different languages etc.):
```$(eval const o = $(urlfetch json https://wombot.fi/nightbot/elo/USERNAME?format=full); o.message || `Elo: ${o.elo}, Today: ${o.eloDiff > 0? "+" : ""}${o.eloDiff}`)```
If you require additional customization the following parameters are exposed in the format=json object.
```JSON
{
"elo": Current elo points,
"level": Current player level,
"recentElo": Recent elo (resets at 05:00 UTC),
"eloDiff": Recent elo difference (resets at 05:00 UTC),
"estWin": Estimated win if currently in match else null,
"estLoss": Estimated loss if currently in match else null
}

Should any questions arise you can contact me on Discord Sunquist#1337

16 replies

Added estimated win / loss of a current game to the API after a request.

I advise formatting the code & json in Markdown. They have curly quotes that mess things up when copied.

Not too familiar with forum posts, thanks for the feedback! I wrapped the code parts.

Copied the advanced usage get error message of unexpected identifer.

This bulbabot site seems to be down any idea why?

Hello,

We have recently moved to https://wombot.fi/ the old endpoint should still work though and returned as expected for me. I updated the post with the new endpoints. JSON object also exposes the current level now.

-Sunquist

Hi, is there any chance i maybe could get help to make an index.html file where i can show the faceit stats as a browser source instead of showing it as a command? 🙂

Yeah that is what I'm looking for, but also with est. Win and lose just right under. Is that that something you have or could you maybe show me how it's done?

The estimated Win Loose will appear once you are in a match 🙂 Width: 1330 Height: 230 are the specs when it is fully expanded with the estimated win / loss. It will update once every 60 seconds.

image.png

i cant use

Indigo Beaver said:
$(eval const obj

in StreamElements, how can I make it work in StreamElements?

(my nightbot have a problem, doesnt reply)

Hi guys, please help. I write the code , but nothing happens , how to do what I would write !elo and showed TODAY + ELO - ELO statistics ?

Didn't find your answer? The community is on Discord.

Ask on Discord