Overview
Commands are the main way users will interact with the bot in your chat. They can be used to trigger actions or display information to your users. In this example, we will create a command that will display the amount of time that has passed since a user was last seen in chat.
Step 1 - Open the Command Creation Tool
- From the bot command dashboard, navigate to the "Custom Commands" tab.
- Click the "Add New Command" button to open the command creation tool.
Step 2 - Basic Settings
- Enter the desired name for your new command. For this example, we will name the command "lastseen".
Optional: Response Type
In the "Response Type" dropdown, select the method you would like the bot to use to send the response.
- Say: Sends the response as a chat message as entered in the basic settings.
- Mention: Sends the response as a chat message, but prefixes the message with @$(user).
-
Reply: Sends the response as a native reply to the user who triggered the command.
- NOTE: If the platform does not support native replies, the response will be sent as a "Mention" instead.
- Whisper: Sends the response as a whisper to the user who triggered the command.
- Add your desired response. For a list of all available variables, see the variables documentation.
Step 3 - Advanced Settings
Optional: Command Aliases
Add one or more command aliases to allow users to trigger the same command using alternate names.
- Click the "Activate Command" button to save your new command.