Ankhbot: A Comprehensive List of Commands

This list is no longer up to date. Ankhbot has been purchased by Streamlabs and a lot of things have changed. Please check the updated list for Streamlabs Chatbot, at the following location: http://smallstreamers.com/streamlabs-chatbot-comprehensive-list-commands/

Introduction

AnkhBot is probably one of the first bots used by all streamers when they start streaming. Eventually some streamers move on to DeepBot ($10 first time fee, plus $5 dollars a month). Because DeepBot costs money and a monthly fee, we will not focus on that software.  I’d recommend to all users who stream as hobby, especially small streamers, to learn Ankhbot and all its functionality.  Don’t dive head first into 20 bots, just because you want to collect them all.  And yes, some streamers collect microphones, collect mixers, collect bots, and I believe enjoy building what they believe it the perfect studio, more than they enjoy streaming. Some streamers obsess on the latest and greatest bot, the best microphone, the best mixer that has the reverb that sounds exactly like their favorite streamers, and how high they can push that kbps number and turn their stream into a masterpiece.  All the while, not spending any time learning their bots and how to give their chat room a better experience.

A lot of things in the list below can be found in the original documentation that you can find on Ankhbots homepage, but for those who prefer to read blogs over PDF files, here you go:


Resources


Glossary

  • Quick Start Commands
  • Twitch API Commands
    • Follow Age
    • Follow Time
    • Followers
    • Account Creation
    • Account Age
    • Chat Rules
    • Latest Highlight
    • Latest Upload
    • Host List
    • Subscriber Emotes
    • Team Members List
  • Games
    • Gambling
    • Roulette
    • Slots
    • Deck Cut
  • Misc Commands
    • Multi Stream Commands
    • Create Highlight Timestamp
  • Other Service API Commands
    • Twitter – Latest Tweet
    • YouTube – Video ID
    • YouTube – Latest Video
    • Urban Dictionary
    • Overwatch Stats
  • Contribute
    • Updates

Quick Start Commands

After reviewing the web logs of my server, it appears a lot of users may not be reading the commands mentioned in this blog in their entirety and are simply copying and pasting the wrong commands. Since it seems like most users are essentially just looking for a copypastasolution, I have adjusted this section to be a “quick start” command reference. These are the most common commands that you see in other streamer’s channels, and they are 100% “copy and paste” friendly. If you want further customization options, see the more detailed overviews below this section. 

 Stats:
This retrieves and displays all information relative to the stream, including the game title, the status, the uptime, and the amount of current viewers.

Command: !stats  
Response: Game: $mygame | Title: $mystatus | Uptime: $uptime | Viewers: $readapi(https://api.crunchprank.net/twitch/viewercount/$mychannel)  

 Uptime:
This returns the duration of time that the stream has been live. If the stream is not live, it will return OFFLINE.

Command: !uptime  
Response: $mychannel has been live for $uptime.  

 Time:
This returns the local time for the streamer.

Command: !time  
Response: The time is currently $time for $mychannel.  

 Date:
This returns the date for the streamer.

Command: !date  
Response: The date is currently $date for $mychannel.  

 Top 5 Points:
This lists the top 5 users who have the most points/currency.

Command: !top5points  
Response: The top 5 users based on points: $toppoints(5)  

 Top 5 Hours:
This lists the top 5 users who have spent the most time, based on hours, in the stream.

Command: !top5time  
Response: The top 5 users based on hours: $tophours(5)  

 Follower Count:
This returns a numerical value representing how many followers you currently have.

Command: !followers  
Response: $mychannel currently has  $readapi(https://api.crunchprank.net/twitch/followcount/$mychannel) followers.  

 Follow Date:
This returns the date and time of which the user of the command followed your channel.

Command: !followed  
Response: $user, you followed $mychannel on $readapi(https://api.crunchprank.net/twitch/followed/$mychannel/$user).  

 Follow Length:
This returns the “time ago” that the user of the command followed your channel.

Command: !following  
Response: $user, you have been following $mychannel for $readapi(https://api.crunchprank.net/twitch/followage/$mychannel/$user?precision=3).  

 Account Creation:
This returns the date and time of when a specified Twitch account was created (I’d recommend limiting this to moderator and higher).

Command: !created  
Response: The account for $target was created on $readapi(https://api.crunchprank.net/twitch/creation/$target).  
Example: !created crunchprank  

 Recent 3 Followers:
This grabs the last 3 users that followed your channel and displays them in chat.

Command: !recentfollowers  
Response: Welcome to our 3 most recent followers: $readapi(https://api.crunchprank.net/twitch/followers/$mychannel?count=3&direction=desc)!  

 Retweet:
This displays your latest tweet in your chat and requests users to retweet it. This only works if your Twitch name and Twitter name are the same.

Command: !retweet  
Response: Please retweet my recent tweet! $readapi(https://api.crunchprank.net/twitter/latest/$mychannel?no_rts&url)  

 Shoutout:
This provides an easy way to give a shout out to a specified target by providing a link to their channel in your chat.

Command: !shoutout  
Response: Please go check out $target at $url - I love them and you should too!  
Example: !shoutout crunchprank  

 Hosting:
This returns all channels that are currently hosting your channel (if you’re a large streamer, use with caution).

Command: !hosting  
Response: Thanks to all the users currently hosting: $readapi(https://api.crunchprank.net/twitch/hosts/$mychannel?implode).  

 Highlight:
This does nothing more than echoing the time and the current length of the stream so that you can have something to reference later if you saw a moment you would like to highlight to make it easier to find.

Command: !highlight  
Response: Highlight timestamp: $time | $uptime  

 Current & Next Song With Details:
These commands show the song information, direct link, and requester of both the current song and the next queued song. For users using YouTube for song requests only.

Command: !song  
Response: Current song: $currentsong - https://www.youtube.com/watch?v=$readapi(https://api.crunchprank.net/youtube/videoid?search=$currentsong) Requested by: $requestedby

Example: !nextsong  
Explanation: Next song: $nextsong - https://www.youtube.com/watch?v=$readapi(https://api.crunchprank.net/youtube/videoid?search=$nextsong) Requested by: $nextrequestedby  

 BTTV Emotes:
This lists all BTTV emotes for your channel.

Command: !bttv  
Response: Check out all the BTTV emotes for $mychannel! $readapi(https://api.crunchprank.net/bttv/emotes?channel=$mychannel)  

 Give Points:
This allows one user to give a specified currency amount to another user.

Command: !give  
Response: $givepoints("$user","$target","$num2","$user gave $value $currencyname to $target","fail","false")  
Example: !give woahh_jess 5  
Explanation: 5 points are removed from user of the command and given to woahh_jess  

 Give Points To Everyone:
This gives a specified amount of points to all users currently in chat.

!points add +viewers <amount>

Twitch API Commands

The following commands take use of AnkhBot’s $readapi function. Basically it echoes the text of any API query to Twitch chat. Some of these commands have optional parameters that can help you customize your query results which I have noted for each command – be sure to play around with those.


Follow Age

  • Description: Gets the time difference (also known as the “follow age” or “time ago”) between when a user followed a channel.
  • Response:
$readapi(https://api.crunchprank.net/twitch/followage/CHANNEL/FOLLOWER)
  • Optional Parameters:
    • precision: How precise the timestamp should be in terms of years, months, weeks, days, hours, minutes & seconds (default: 2).
  • Example Responses:
$user has been following the channel for  $readapi(https://api.crunchprank.net/twitch/followage/crunchprank/$user?precision=3).
  • Example Output:
miniemode has been following the channel for 1 month, 3 days, 19 hours.  

Follow Time

  • Description: Retrieves the date and time of when the user followed the channel.
  • Response:
$readapi(https://api.crunchprank.net/twitch/followed/CHANNEL/FOLLOWER).
  • Optional Parameters:
    • tz – By default this query will output the result in UTC. However if you’d like to change the time zone, you can specify using the PHP list of all available time zones, check here.
  • Example Responses:
$user started following on $readapi(https://api.crunchprank.net/twitch/followed/crunchprank/$user?tz=America/New_York).
  • Example Output(s):
miniemode started following on Jun 07. 2016 - 05:57:21 PM (America/New_York).  

Followers

  • Description: Retrieves the followers of a specified channel using a variety of optional parameters for customization.
  • Response:
$readapi(https://api.crunchprank.net/twitch/followers/CHANNEL)
  • Optional Parameters:
    • count – How many followers to get with the request (default: 1 | max: 100).
    • offset – How many followers to offset from the beginning of the object.
    • direction – What direction to retrieve followers in. Can either be ‘asc’ (oldest) or ‘desc’ (most recent). The default is ‘desc’.
    • num – Prefixes each follower with a number.
  • Example Responses:
Everyone welcome our 3 most recent followers: $readapi(https://api.crunchprank.net/twitch/followers/crunchprank?count=3&direction=desc).  
  • Example Output(s):
Everyone welcome our 3 most recent followers: miniemode, xeygwyn, oneshiponecastle.  

Account Creation

  • Description: Retrieves the creation date and time of a user.
  • Response:
$readapi(https://api.crunchprank.net/twitch/creation/USER).
  • Optional Parameters:
    • tz – By default this query will output the result in UTC. However if you’d like to change the time zone, you can specify using the PHP list of all available time zones, check here.
  • Example Responses:
The account for $user was created on  $readapi(https://api.crunchprank.net/twitch/creation/$user?tz=America/New_York).  
  • Example Output(s):
The account for crunchprank was created on Dec 26. 2013 - 09:31:06 PM (America/New_York).  

Account Age

  • Description: Retrieves the age of an account.
  • Response:
$readapi(https://api.crunchprank.net/twitch/accountage/USER).
  • Optional Parameters:
    • precision – How precise the timestamp should be in terms of years, months, weeks, days, hours, minutes & seconds (default: 2).
  • Example Responses:
The account for $user was created $readapi(https://api.crunchprank.net/twitch/accountage/$user) ago.  
  • Example Output(s):
The account for crunchprank was created 3 years, 4 months ago.  

Chat Rules

  • Description: Retrieves the chat rules of a channel as defined in that user’s profile settings.
  • Response:
$readapi(https://api.crunchprank.net/twitch/chat_rules/CHANNEL).
  • Example Output:
1. Follow the Twitch Rules of Conduct  
2. Be nice!  
3. Respect other humans (and happy little trees)  
4. Include everyone  
5. Listen to the moderation team  

Important Note: The API output has line breaks, however Twitch chat does not allow line breaks which means if your rules are on separate lines like the ones above, it will all be condensed into a single line which results in sometimes a broken looking result.


Latest Highlight

  • Description: Retrieves the latest highlight of the specified channel.
  • Response:
$readapi(https://api.crunchprank.net/twitch/highlight/CHANNEL).
  • Example Output:
How To: Fishing in Stardew Valley - https://www.twitch.tv/miniemode/v/106450856  

Latest Upload

  • Description: Returns the latest uploaded video for the specified channel.
  • Response:
$readapi(https://api.crunchprank.net/twitch/upload/CHANNEL)
  • Example Output(s):
Gwynnie Derps - https://www.twitch.tv/xeygwyn/v/98691311  

Host List

  • Description: Returns a list of channel names hosting the specified channel.
  • Response:
$readapi(https://api.crunchprank.net/twitch/hosts/CHANNEL)
  • Optional Parameters:
    • display_name – If specified, this will use the display names instead of the usernames of the users that are hosting.
    • list – If specified, the list will be in plaintext (using newlines) instead of in a JSON object.
    • implode – If specified, the list will be returned comma-separated (“, “) instead of JSON/a “newlined” list.
  • Example Responses:
Thanks to all the users currently hosting: $readapi(https://api.crunchprank.net/twitch/hosts/crunchprank?implode).  
  • Example Output(s):
Thanks to all the users currently hosting: miniemode, xeygwyn, oneshiponecastle.  

Subscriber Emotes

  • Description: Retrieves the subscriber emotes for the specified channels and lists them.
  • Response:
$readapi(https://api.crunchprank.net/twitch/subscriber_emotes/CHANNEL)
  • Example Output(s):
bobrossDealWithIt bobrossGold bobrossGG bobrossPal bobrossCanvasH bobrossBeli bobrossEve bobrossBush bobrossKappaR...  

Team Members List

  • Description: Retrieves the members of a specified team.
  • Response:
$readapi(https://api.crunchprank.net/twitch/team_members/TEAM)
  • Optional Parameters:
    • sort – If this is specified, it will sort the members of the team alphabetically.
    • implode – If this is specified, the list will be returned in plaintext compared to a JSON array (use a + for space).
  • Example Responses:
Make sure to check out all the members of the Next Level team: $readapi(https://api.crunchprank.net/twitch/team_members/nextlevel?implode=,+).  
  • Example Output(s):
Make sure to check out all the members of the Next Level team: 360chrism, fuzzyness, nospimi99, redfalcongames, chrescendo, vespher, raysfire, theno1alex.  

Games

These are scripts/commands created by the community to add a few more games to AnkhBot aside from what is already included.


Gambling

  • Description: A much sought after game, this allows a user to gamble their channel currency exactly like Revlo, with the addition to gamble all their currency at once. If you would like to set a cap on the max amount of currency a user can gamble, change the value in the maxBet.txt file (by default it’s disabled, indicated by the 0 value). All credit to the super awesome AnkhBot Community Helper Castorr91This uses the newly implemented $math parameter, thus AnkhBot v1.0.1.29 or later is required. If for whatever reason you want the old gamble script, you can download it here.
  • Installation:
    1. Download the package of files here.
    2. Navigate to your AnkhBot installation folder.
    3. Go into the Twitch folder.
    4. Place the above downloaded file in the Twitch folder and extract its contents here.
    5. In AnkhBot, create a command such as !gamble.
    6. In the Response field, use the one provided below.
  • Response:
$overwritefile("twitch/games/gamble/all.txt","$num","","")
$overwritefile("twitch/games/gamble/all.txt","$points","","$realuser ecountered error #$readline(twitch/games/gamble/$target.txt), please try again")
$overwritefile("twitch/games/gamble/runTest.txt","$math[$readline(twitch/games/gamble/all.txt)>$readline(twitch/games/gamble/maxBet.txt)]","","$target")
$overwritefile("twitch/games/gamble/maxTest.txt","$math[$readline(twitch/games/gamble/maxBet.txt)=0]","","")
$overwritefile("twitch/games/gamble/runTest.txt","$readline(twitch/games/gamble/maxTest.txt)$readline(twitch/games/gamble/runTest.txt)","","")
$readspecificline(twitch/games/gamble/run.txt,$readline(twitch/games/gamble/runTest.txt))
$overwritefile("twitch/games/gamble/all.txt","","","")$overwritefile("twitch/games/gamble/runTest.txt","2","","")
  • Usage: A user can use the command you created (e.g. !gamble) to gamble their in channel currency by rolling. If the user rolls 1-60 then they lose the amount of points they bet. If the user rolls a 61-98 then they win the amount of points they bet. If the user rolls a 99-100 they will win triple the points they bet. If a user would like to take a chance and gamble their entire amount of currency, they can use the command !gamble all, provided that gamble was what you set the command to.

Roulette

  • Description: This allows users to place a bet on the roulette wheel, with a multitude of options to specify. All credit to the super awesome AnkhBot Community Helper Castorr91.
  • Installation:
    1. Download the package of files here.
    2. Navigate to your AnkhBot installation folder.
    3. Go into the Twitch folder.
    4. Place the above downloaded file in the Twitch folder and extract its contents here.
    5. In AnkhBot, create a command such as !roulette.
    6. In the Response field, use the one provided below.
  • Response:
$overwritefile("Twitch\Games\roulette\settings\cost.txt","$num2","","")
$readline(Twitch/Games/roulette/settings/setup.txt)$overwritefile("Twitch\Games\roulette\target.txt","$target","","")
$removepoints("$realuser","$readline(Twitch\Games\Roulette\settings\cost.txt)","$readline(Twitch\Games\Roulette\settings\cost.txt)","","You don’t have enough $currencyname to spin the roulette!","false")$readrandline(twitch/games/roulette/$readline(twitch/games/roulette/target.txt).txt)
  • Usage: A user can use the command you created (e.g. !roulette) to bet on the roulette wheel. How much a user wins is based on how much they bet and how the odds are for that specific bet. A user is able to bet on red, black, green, odd, even, column1, column2, column3, dozen1, dozen2, dozen3, any single number, basket, high, and low. For an image to reference, as well as the odds of winning, see this image. For example, if a user wants to place a bet for the roulette wheel on “red 50”, they would type !roulette red 50.

Slots

  • Description: A minigame that allows the user to play a slot machine. In chat, 3 emotes will appear and the user will win/lose based on that. All credit to the super awesome AnkhBot Community Helper Castorr91.
  • Installation:
    1. Download the package of files here.
    2. Navigate to your AnkhBot installation folder.
    3. Go into the Twitch folder.
    4. Place the above downloaded file in the Twitch folder and extract its contents here.
    5. In AnkhBot, create a command such as !slots.
    6. In the Response field, use the chunky one provided below.
  • Response:
$overwritefile("Twitch/Games/slot/settings/cost.txt","$target","","")
$overwritefile("Twitch\Games\slot\settings\win.txt","$readapi(https://api.crunchprank.net/math?exp=2.5*$readline(Twitch\Games\slot\settings\cost.txt)&round=0)")$overwritefile("Twitch\Games\slot\settings\jackpot.txt","$readapi(https://api.crunchprank.net/math?exp=15*$readline(Twitch\Games\slot\settings\cost.txt)&round=0)")
$overwritefile("Twitch\Games\slot\settings\superJackpot.txt","$readapi(https://api.crunchprank.net/math?exp=25*$readline(Twitch\Games\slot\settings\cost.txt)&round=0)")
$removepoints("$user","$readline(Twitch/Games/slot/settings/cost.txt)","$readline(Twitch/Games/slot/settings/cost.txt)","$user pulls the lever and waits for the roll .... ","$user you don't have enough $currencyname to play the slot machine, try again later","false")$readrandline(twitch/games/slot/slot.txt)
$overwritefile("twitch/games/slot/settings/superJackpot.txt","$readapi(https://api.crunchprank.net/math?exp=$readline(twitch/games/slot/settings/superJackpot.txt)%2B$readline(twitch/games/slot/settings/cost.txt)/2&round=0)","","")
  • Optional Installation Step: At this point, you’ve completed setting up the Slots minigame. However if you’d like to define the cost to play the slots to a set amount, then you can use the following Response to set up a command that allows you to do so.
$overwritefile("Twitch/Games/slot/settings/cost.txt","$target","","")
$overwritefile("Twitch\Games\slot\settings\win.txt","$readapi(https://api.crunchprank.net/math?exp=2.5*$readline(Twitch\Games\slot\settings\cost.txt)&round=0)")$overwritefile("Twitch\Games\slot\settings\jackpot.txt","$readapi(https://api.crunchprank.net/math?exp=15*$readline(Twitch\Games\slot\settings\cost.txt)&round=0)")
$overwritefile("Twitch\Games\slot\settings\superJackpot.txt","$readapi(https://api.crunchprank.net/math?exp=25*$readline(Twitch\Games\slot\settings\cost.txt)&round=0)")
  • Usage: If you used the first Response from above, then the user would issue your command plus whatever value of currency they would like to risk, such as !slots 100. If you also used the second Response and assigned it to something such as !setslots, then you would just type !setslots 50 if you’d like each Slot play to cost the user 50 currency. After that, the user would only need to issue !slots to play. It is highly recommended that the !setslots command should be restricted to the Streamer, or at least a moderator and higher. After a user plays the Slots, the win/lose results are then displayed in the chat.

Stealing

  • Description: A minigame in which the user risks X amount of currency in order to steal more, or possibly less, X currency from a targeted user. Credit to TheRealRazgriz.
  • Response:
$givepoints("$target","$user","$randnum(150)","$user just stole $value currency from $target","Operation Failed!  $target defended themselves!","false") $givepoints("$user","$target","40","","","false")
  • Usage: In the above example the user gives 40 currency to the targeted user, but in return it attempts to “steal” a random amount of currency between 0-150 from the targeted user.

Deck Cut

  • Description: A script created by azureyoshi where if the user draws a carder higher than an 8, they win. Otherwise they will lose.
  • Scripthttp://pastebin.com/raw/kSKm6GcY
  • Details You will need to copy the text from the Pastebin and paste it into a .txt file on your computer. Then use the $readrandline as mentioned in the example response below to read from the .txt file created. By default, the currency amount is hardcoded to 50. You will need to do something such as a “find and replace” if you want to adjust that amount, replacing all the 50s with your desired amount.
  • Response:
$readrandline(C:\path\to\cut\file.txt)
  • Usage: In the above example the user would simply type whatever command you’ve defined, say !cutdeck and the bot will announce whether the user won or lost.
  • Example Output:
Azureyoshi pays 50 Azurency to cut the deck, and... it was a 10! Azureyoshi gained 50 Azurency in net profits!  

Misc Commands

These are various commands that take advantage of the different, more advanced features of AnkhBot.


Multi Stream Command

  • Description: Allows a user to generate a multi-stream link.
  • Response:
http://multitwitch.tv/CHANNEL/$target  
  • Usage: If you have this response set to the command !multi, then a user would type !multi user1/user2/user3 etc which would generate a link like: http://multitwitch.tv/CHANNEL/user1/user2/user3.

Alternate Multi Stream Command

  • Description: This is a series of two commands that allows you or a mod to define one or more streamers for a multi stream link by writing the streamers to a file. Then a normal viewer can run another shorter, simple command to get the entire list. Credit to aJeenyus.
  • Input:
# Command:
!setmulti (I would suggest only allowing mods+ for this)
# Response
$overwritefile("C:\path\to\multi.txt","Support all the streamers currently playing by watching the multi-stream: http://multitwitch.tv/CHANNEL/$target") Multi is set. Type !multi

# Command:
!multi (This should be a command for everyone)
# Response:
$readline(C:\path\to\multi.txt)
  • Usage: This first command writes all the streamers to a text file, so you would issue it like: !multiset user1/user2/user3. Then a normal viewer would only have to type !multi to view the generated link.

Create Highlight Timestamp

  • Description: This will allow a user to issue a command that creates a timestamp of a point in the stream where they would like to see a highlight later created (the highlight will need to be manually created by the streamer of course). Credit to Korlian81.
  • Response:
$savetofile("C:\highlights.txt","$time- $uptime - $msg","Highlight timestamp saved! :D","Failed!")
  • Usage: A user will need to issue the command you assign the response to (e.g. !highlight) along with a message. If there is no message, then the command will fail to be executed. (e.g. !highlight miniemode hits 500 followers)

Other Service API Commands

The following commands take use of AnkhBot’s $readapi function the same way as above, however these are for other services than Twitch.


Twitter – Latest Tweet

  • Description: Returns the latest tweet by the specified user.
  • Response:
$readapi(https://api.crunchprank.net/twitter/latest/USERNAME)
  • Optional Parameters:
    • no_rts – If specified, retweets will not be included.
    • include_replies – If specified at all, this includes replies from the specified user to other users as well.
    • no_exclude_replies – Works similarly to include replies, except this query string cannot be specified as just empty unlike include replies.
    • search – Goes through each of the latest tweets (up to 200) and then searches with the specified string (case-insensitive). If this is not specified, it will just return the latest tweet.
    • strict – This is used together with search. If specified, it will do a case-sensitive search.
    • url – If specified, the URL of the tweet will be appended to the result.
    • shorten – Used together with url. Shortens the URL using TinyURL.
    • howlong – Includes the time since the tweet was posted.
  • Example Responses:
Retweet my latest tweet: $readapi(https://api.crunchprank.net/twitter/latest/crunchprank?url).  
  • Example Output(s):
yesterday i ate captain crunch, salt and vinegar chips, and pizza. today the roof of my mouth is non-existent. - https://twitter.com/crunchprank/status/821484732324188161  

YouTube – Video ID

  • Description: Searches the YouTube API with the specified string and returns the first result it can find.
  • Response:
$readapi(https://api.crunchprank.net/youtube/videoid?search=TERM)
  • Optional Parameters:
    • show_url – Prepends https://youtu.be/ before the video ID to make it a proper URL.
  • Example Output(s):
7rs6HuJj4TE  

YouTube – Latest Video

  • Description: Retrieves the latest video uploaded to the specified channel and returns the title and URL for it.
  • Response:
$readapi(https://api.crunchprank.net/youtube/latest_video?user=USER)
or  
$readapi(https://api.crunchprank.net/youtube/latest_video?id=USERID)
  • Optional Parameters:
    • user – For users with usernames in their URL.
    • id – For users with an ID number in their URL.
    • skip – Skips the specified amount of uploads (default: 0, maximum: 50).
  • Example Responses:
Check out my latest YouTube video: $readapi(https://api.crunchprank.net/youtube/latest_video?user=miniestation).  
  • Example Output(s):
Check out my latest YouTube video: 32 Questions Tag! | Get To Know Me - https://youtu.be/mYAYC9MgjjM  

Urban Dictionary

  • Description: Finds the first returned definition of a specified word from Urban Dictionary. Credit to boxabout.
  • Response:
$msg: $readapi(http://jwd.me/twitch/api/urban-dictionary.php?q=$msg)
  • Usage: If you have this response set to the command !urban, then a user would just type !urban word to get the Urban Dictionary’s definition of that word.

Overwatch

  • DescriptionYes this is quite a block of text, but read it thoroughly as the overall concept is rather easy to understand. This allows users to issue commands to check various Overwatch stats of an Overwatch player and comes in two flavors for you to pick from. The first Response is for a command that checks a user-inputted Overwatch player. While this allows your viewers to check any Overwatch player on any platform, it makes it so the command can be longer for the user to type, as well as has a chance to become a source of chat spam if too many people are using it. The second Response is for a command that checks a defined Overwatch player, and what I personally recommend. This allows you to use a shorter command to check the stats, and also limits the usage so that any Overwatch player isn’t able to be looked up – just you (or whoever you define). Credit to xgerhard for creating the API. You can find an entire list of the various stats you’re able to look up here, and further general documentation hereImportant to note, that if you’re playing on PC and not in the NA/US region, you will need to explicitly give the region.
  • First Response:
$readapi(https://2g.be/twitch/Overwatch/command/action=$target&bot=ankhbot&user=$user&console=$target3&channel=$mychannel&defaultconsole=pc&gamertag=$target2)

This response is copy/paste friendly. The user interacts via commands such as !overwatch action username platform. So for example if I wanted to check my Kill/Death ratio and I play Overwatch on PC, I would issue !overwatch kda crunchprank-1234 pc. If I wanted to check the same thing, but my account was in Europe, I would need to type !overwatch kda crunchprank-1234-eu pc. If I played on a console such as PS4, then there’s no need for a Battletag or region and would look something like this !overwatch kda crunhprank ps.

  • Second Response:
$readapi(https://2g.be/twitch/Overwatch/command/action=$target&format=twitch&user=$user&bot=ankhbot&console=XX&channel=$mychannel&gamertag=USERNAME-XXXX&hideBnetID)

This command is not copy/paste friendly but my suggested method. It requires you to make two adjustments so that it knows what user name to look up by default. So in the above response example, the parts that say console=XX and gamertag=USERNAME-XXXX will need to be changed to whatever Overwatch player you want the command to check by default for and what platform they are playing on. So if I wanted to only allow viewers to check the PC stats for woahh_jess, I would make sure that those parts were changed to console=pc and gamertag=woahh_jess-1234. If woahh_jess’ account was in Europe, then I would change the gamertag portion to gamertag=woahh_jess-1234-eu. If for PS4, I would change them to console=ps and gamertag=woahh_jess. Once you have set up the response correctly, all a user would need to do is type for example !overwatch time and that would return the “time played” for the player you specified in your response.


Contribute

This will be an ongoing work in progress so long as AnkhBot stays under development. Please feel free to submit anything you think would be a good resource for other users. Also let me know if you see any errors in the commands or logic or grammar, etc. I will be sure to give credit where credit is due! You can comment below, connect with me on Twitter, or find me the AnkhBot Discord if you’d like to contribute anything.


Updates

Current AnkhBot version for this list: 1.0.2.2

  • June 7, 2017
    • Added stats, song/nextsong, and BTTV commands to quick start.  Submitted by Castorr91.
  • June 3, 2017
    • Added Overwatch Stats.
    • Updated Gamble script with the one created by Castorr91.
    • Removed the Revlo currency exchange script/command. See here.
  • May 25, 2017
    • Added new image to Roulette for reference.
    • Added a “setslot” command to Slots.
    • Various typo corrections.
  • May 21, 2017
    • Added Follower Count to Quick Start Commands.
  • May 20, 2017
    • Restructured layout, changed “jump-to” links.
    • Added Quick Start Commands for easy copy and paste.
    • Added Account Creation.
    • Added Account Age.
    • Added/Replaced games: GamblingSlots, and Roulette.
    • Fixed an API issue with the Twitch Hosting endpoint and YouTube (Decicus’ was working fine).
  • Feb 25, 2017
    • Added a Glossary for quick “jump-to” links.
    • Added a note regarding the Chat Rules API call.
    • Added a series of Roulette mini-games.
    • Added a Deck Cut game.
    • Added a note regarding adding numbers to the Math API call.
  • Feb 2, 2017
    • Added Alternate Multi Stream Command.

 

Credit to Crunchprank for putting this huge list of commands together.  A lot of these commands work using his API so make sure you check out his blog!  #supportsmallstreamers #supportsmallbloggers #support