Tools

aomstats twitch bot

aomstats provides a Twitch bot that is linked to your profile. It provides the following commands:

  • #match - displays current players, their ratings, and god (whether you're spectating or playing)
  • #lastmatch - displays the last match played by the streamer
  • #player <player_name> - searches for a player with that name and displays that player's win rate, rating, and favorite god
  • #playertg <player_name> - displays the player's team game info
  • #playerco <player_name> - displays the player's controller only info
  • #playerdm <player_name> - displays the player's deathmatch only info
  • #playerdmtg <player_name> - displays the player's deathmatch team game info
  • #session - displays your current ranked 1v1 session stats, including your win/loss ratio, and the number of games you have played
  • #sessionall - displays your current session stats across all games, not just ranked 1v1
  • #help - displays all available 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:

!rank command

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: example of setting up a urlfetch command with nightbot

Using this command in a Twitch chat would then look like: example of the command being used in Twitch chat