-
Notifications
You must be signed in to change notification settings - Fork 0
/
NightbotFaceitCommands.txt
11 lines (6 loc) · 1.6 KB
/
NightbotFaceitCommands.txt
1
2
3
4
5
6
7
8
9
10
11
Here are the commands with my own username in them. Replace 'Floofys' with your name and it is case-sensitive.
!addcom !elo @$(user) -> $(eval message = ""; const api = $(urlfetch json http://api.faceit.myhosting.info:81/?&n=Floofys); if (api.error) { message += api.message;} else { message = 'Level:' + api.level + ' Elo:' + api.elo + ' Today -> Win:' + api.today.win + ' Lose:' + api.today.lose + ' EloDelta:' + api.today.elo ; if(api.today.elo == 0){ message += " 💬 " } else if(api.today.elo < 0) { message += " 📉 " ;} else { message += " 📈 " ;} } message)
!addcom !lastgame @$(user) -> $(eval message = ""; const api = $(urlfetch json http://api.faceit.myhosting.info:81/?&n=Floofys); if (api.error) { message += api.message;} else { message = 'Last game: ' + api.last_match.split(",")[0] + ' ' ; if(api.last_match.includes('Victory')) { message += " GG EZ " ;} else { message += " Oof ouch owie " ;} } message)
!addcom !lastgamefull @$(user) -> $(eval message = ""; const api = $(urlfetch json http://api.faceit.myhosting.info:81/?&n=Floofys); if (api.error) { message += api.message;} else { message = 'Last game: ' + api.last_match + ' ' } message)
!addcom !recentgames @$(user) -> $(eval message = ""; const api = $(urlfetch json http://api.faceit.myhosting.info:81/?&n=Floofys); if (api.error) {message += api.message;} else { message = 'Recent games: ' + api.report + ' ' ; } message)
!addcom !trend @$(user) -> $(eval message = ""; const api = $(urlfetch json http://api.faceit.myhosting.info:81/?&n=Floofys); if (api.error) {message += api.message;} else { message = 'Trend: ' + api.trend + ' ' ; } message)