aomstats provides a Twitch bot that is linked to your profile. It provides the following commands:
To get the Twitch bot in your channel, first login to aomstats, then authorize the bot in your settings.
The bot will automatically join your channel within 30 seconds and will respond to commands. The bot doesn't need to be a moderator or a subscriber, however, if you are in followers-only mode, you will need to either VIP the bot or make it a moderator so that it can chat. The bot itself does not perform any moderation actions even if it is made a moderator.
There are some bot limitations. If you have pre-roll ads enabled, the bot will not be able to parse your stream if you are spectating a match, meaning the #match command will not work.
Example command outputs:
aomstats can be used to create a !rank command for stream chats. You can use the following template url to create a custom url command for your channel: aomstats.io/api/twitch/profile/<profile_id>
Simply replace <profile_id> with your profile id. To find your profile id go the Leaderboard page , search for your profile, and copy the profile id from the url. A full url will look like: aomstats.io/api/twitch/profile/1073837713
This url will output text that can be used by chatbots. An example:
Username is currently rank 45 in Sup 1v1 with a rating of 1561. 289 games, 56.40% win rate, 163W 126L
You can append a leaderboard id (1, 2, 3, 4) to the url to get the rank for different ranked ladders, Supremacy 1v1, Supremacy Team, Deathmatch 1v1, and Deathmatch Team, respectively. For example this link would get Nakamura's deathmatch 1v1 rank and info: aomstats.io/api/twitch/profile/1073744200?leaderboard=3
Once you have your personalized url, you can use it with your chatbot to create a !rank command. Many chatbots have special keywords that will fetch content from a url for a command. For example, Nightbot has urlfetch .
Using Nightbot as an example, you can set up a custom !rank command like so:
Using this command in a Twitch chat would then look like: