Nightbot commands

We offer you useful Nightbot commands for your personal Nightbot instance. Our commands give your viewers quick insights into the statistics of all Age of Empires II: Definitive Edition players without having to leave your stream or chat room.
Just configure your commands and copy the codes to add them to your Nightbot. The commands can be used immediately, registration is not required.


!rank command

The !rank <username/id> command displays a users rank and his current elo on a specific ladder. It accepts usernames or user ids, if a username is given it searches for users starting with the given username and returns the first one with the highest rank.

It can be used with or without default_user_id. If used with default_user_id the command can also be executed without any argument (!rank), and then displays the rank and elo of the specified user.

Configure
Add command to Nightbot:
!addcom !{{ bag.rankCommand }} $(urlfetch https://www.aoe2insights.com/nightbot/rank/{{ bag.rankLadder }}/?query=$(querystring)&default_user_id={{ bag.rankDefaultUserId }})
Example output:
User: !{{ bag.rankCommand }} GL.TheViper
Nightbot: Hera (2644, 2769 max) ranks #2 at RM 1v1 with a 69.53% winrate (by aoe2insights.com)

!streak command

The !streak <username/id> command displays a users game count, win rate and its current winning streak. It accepts usernames or user ids, if a username is given it searches for users starting with the given username and returns the first one with the highest rank.

It can be used with or without default_user_id. If used with default_user_id the command can also be executed without any parameter (!streak)

Configure
Add command to Nightbot:
!addcom !{{ bag.streakCommand }} $(urlfetch https://www.aoe2insights.com/nightbot/streak/{{ bag.streakLadder }}/?query=$(querystring)&default_user_id={{ bag.streakDefaultUserId }})
Example output:
User: !streak GL.TheViper
Nightbot: GL.TheViper played 1387 games with a 65.61% winrate and is on a +5 streak (by aoe2insights.com)
{{confirmMessage}}