Regular Command Variables

DeepBot allows you to use custom commands in the channel messages module that allow you to deliver dynamic content to your viewers.

Listed below are the set of custom commands available with DeepBot. Feel some more are needed? Head over to the Feature Requests section on the forums and make a post.

Variable

Info

@btag@

Shows the battle tag of the user.

@cmdstatus@[!command]

Checks if a command is enabled or disabled.

@cost@

Tells the user how much it costed if the command was executed.

@counter@

Counts the number of times a command has been executed successfully. The value that this pulls from the command can be reset in the custom command editor.

@customapi@[InsertAPIURLHere]

Use your own custom API. Include the brackets when making the command. (See the examples below.)

@disablecmd@[!command]

Disables a command.

@discordinfo@[username]

Assuming the viewer in question has linked their Discord account this variable retrieves the user's Discord name or ID. e.g.
@discordinfo@[expertsonline] or @discordinfo@[@user@,id]

@enablecmd@[!command]

Enables a command.

@escrow@

Gets the number of points the user has currently placed in bets, raffles, and mini-games.

@followers@

Total number of users following the channel.

@game@

Displays what is currently being streamed in the channel.

@getcounter@[!command]

Grabs the counter of a command. (E.g. for a death counter mods could use a mod only custom command !adddeath to add the death to the counter. Viewers could use !death which contains “@getcounter@[!adddeath]” to display what the counter for the !adddeath command is currently at.

Similar to @target@, but you can specify multiple targets and have them placed wherever you like. (E.g. @target@[1] hit @target@[2], “!hit Expertsonline RepentGamingTV” will give a message Expertsonline hit RepentGamingTV)

@target@[1|20]

Grabs an array of targets. (E.g. !name My name is Bob | @target@[1|4])

@time@

Displays the current time on the computer the bot is hosted using the 12-hour clock.

@time24@

Displays the current time on the computer the bot is hosted using the 24-hour clock.

@title@

Displays the current stream title.

@uptime@

Shows the total amount of time the stream has been live (calculated by Twitch).

@uptime2@

Similar to @uptime@, except the total time is self-computed by DeepBot, with grace period for crashes/disconnects.

Generates a random number between the minimum and maximum numbers specified. E.g. @rand@[1|100]

@rand@[min|max|unique]

“Unique” parameter to allow multiple random numbers to be generated in a single message

@readfile@[PathToFile\Example.txt]

Reads a line from an existing text file. (By default, it uses the custom logs folder in your DeepBot folder). E.g. @readfile@[followcount.txt]

@readfile@[Line#,Example.txt]

Reads a specific line from an existing text file. For example, @readfile@[4,users.txt] will read the fourth line. Use 'l' (L) instead of a number to read the last line.

@replace@[String/Variable|To Replace|To Replace With]

Searches a string or variable and performs a find/replace operation on it. For example, @replace@[@target@|@|] will search the @target@ variable for any @ symbols. If it finds any, it will remove them from the text. Another example of this is @replace@[@target@|_| ], which would replace any _ (underscores) with a space. E.g. @replace@[This_is_a_bot_test.|_| ] → This is a bot test.

@savefile@[PathToFile\Example.txt,Example Line will be added]

Creates a new text file or, if a text file with the same name already exists, it will overwrite the existing file. E.g. @savefile@[deathcounter.txt,The death counter is now at @counter@]

@savelog@[PathToFile\Example.txt,Example Line will be added]

Adds new lines to existing files. E.g. @savelog@[userqueue.txt,@user@ purchased a spot at @time@] You can also write the same text as the text sent to the channel by using @message@. E.g. @user@ has purchased a song! E.g. @savelog@[songpurchase.txt,@time@:@target@])