TrioBot is a simple twitch.tv chatbot built by TerribleTrioJoe.
Lists available custom commands.
Examples:
Adds a custom command.
Only usable by authorized users.
For full documentation on custom command responses, see the section below.
Examples:
Edits a custom command, or adds it if it does not exist.
Examples:
Removes a custom command.
Examples:
The available timer subcommands are: check, start, restart,and reset
!time can be used in place of !timer for all examples below.
Check the elapsed time
Examples:
Starts the timer.
If initialTime is specified the timer will start with that amount of time elapsed. initialTime can be specified as hh:mm:ss or an integer number of seconds.
If the timer is already running, this command will do nothing.
Examples:
Starts the timer, similar to !timer start.
If the timer is already running, this command will restart it.
Examples:
Stops and resets the timer.
Examples:
Authorized users can add custom commands that the bot will respond to for all users. There are two types of custom command responses: static and dynamic.
When adding or editing a custom command, the response is all text after the command name.
Examples:
Static responses are simple text responses that do not change. In other words, the command will always result in the same message sent in response by the bot. Responses are static if they do not contain a dynamic section.
Examples:
Dynamic responses allow for more interesting bot interaction.
To create a dynamic response, the response must have at least one dynamic section. Dynamic sections are composed of a dynamic function call between double square brackets ([[ and ]]).
Examples:
The available dynamic functions are: arg, args, randInt, and user
Replaces the dynamic section with the space-separated command argument specified by the given index.
index is required.
The index starts from 0 (so the first argument is arg 0).
An invalid index will result in the dynamic section being replaced with an empty space.
Examples:
Replaces the dynamic section with everything after the command name.
Examples:
Replaces the dynamic section with a random integer between min inclusive and max exclusive (math notation: [min, max)).
min and max are both required and must be integers.
Examples:
Replaces the dynamic section with a mention of the user who sent the command (i.e. @terribletriojoe).
Examples:
TrioBot has a simple permissions model. There are authorized users and normal users.
Authorized users are the channel owner, and specific users chosen by the owner.
Normal users are everyone else.
Authorized users can add, edit, and remove custom commands. They can check, start, restart, and reset the timer. They can also use custom commands.
Normal users can check the timer and use custom commands.
Normal users have a 30 second cooldown per command.
Authorized users have a 3 second cooldown per command.
Reach out to TerribleTrioJoe if you have questions.