Small Faceit (.com) api to retrieve last CS2 matches, elo, last match stats, live match data, ladder and hub info given a faceit user name.
Last update: added secured url with a new domain faceit.lcrypt.eu (the old one will remain working).
Usage examples
!elo
!addcom -cd=5 !elo $(eval const api = $(urlfetch json https://faceit.lcrypt.eu/?n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { '$(user), my elo is '+ api.elo +' (Lvl: '+ api.level +')' })
output: Xxx, my elo is 2001 (Lvl: 10)
!elo (short format)
!addcom -cd=5 !elo $(eval const api = $(urlfetch json https://faceit.lcrypt.eu/?n=YOUR_FACEIT_USER); if (!api.error) { 'Lvl: '+ api.level + ' Elo: '+ api.elo })
output: Lvl: 10 Elo: 2001
!elo (with today balance)
!addcom -cd=5 !elo $(eval const api = $(urlfetch json https://faceit.lcrypt.eu/?&n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { 'Elo: ' + api.elo +' Today: '+ api.today.elo })
output: Elo: 2426 Today: -24
!last (last matches report)
!addcom -cd=5 !last $(eval const api = $(urlfetch json https://faceit.lcrypt.eu/?n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { '$(user) my last matches -> ' + api.report; })
output: Xxx, my last matches -> WIN 16:9 Inferno (+11), LOSE 16:13 Nuke (-24), ...)
!today (recent games win, lose count and accumulated elo)
!addcom -cd=5 !today $(eval const api = $(urlfetch json https://faceit.lcrypt.eu/?&n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { 'Today -> Win: ' + api.today.win + ' Lose: ' + api.today.lose + ' Elo: ' + api.today.elo })
output: Today -> Win: 3 Lose: 1 Elo: +50
!playing (currently playing match)



