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
