Hi Nightbot community.
Today, I want to introduce my little api.satont.ru that can display your CSGO level and elo on faceit.com. It's super easy to use with the eval filter. Why eval? Well, because it allows you to customize the response format in the chat according to your preferences!
Here's an example:
`
$(eval const api = $(urlfetch json https://api.satont.ru/faceit?nick=USERNAME); if (api.error) {'Error';} else { 'Lvl: ' + api['lvl'] + ' Elo: ' + api['elo'] })
`
Just make sure to replace USERNAME with your actual username on faceit!
What's great is that it also supports a custom view using a string format. You can simply use it like this:
`
$(urlfetch http://api.satont.ru/faceit?nick=USERNAME&view=Lvl: {lvl}, elo: {elo} trend: {latestMatchesTrend.simple}), Current match gain: {currentMatch.gain})
`
Complex example looks like that:
`
$(urlfetch http://api.satont.ru/faceit?nick=scoffy&view=Lvl: {lvl}, elo: {elo} trend: {latestMatchesTrend.simple}), Current match gain/lose: {currentMatch.gain}/{currentMatch.lose}, Lifetime Wins: {stats.lifetime.Wins})
`
It result as: Lvl: 10, elo: 3121 trend: L, Current match gain/lose: 25/-25, Lifetime Wins: 2186
You can check supported variables in http://api.satont.ru/docs, current example response is:
json{"lvl": 10,"elo": 3000,"currentMatch": {"gain": 28,"lose": -30},"latestMatchesTrend": {"simple": "WLWLW","extended": "W +10 | L -22 | W +24 | L -35 | W +28","score": {"wins": 3,"loses": 2}},"todayEloDiff": "+14","latestMatches": [{"team": "team_-HEi5","teamScore": "16 / 11","map": "de_mirage","kd": "0.81",
