Bots Development Environment Setup
Developing bots on RocketChat requires you to get and customize our boilerplate code. To do that, you need to have the following on your machine.
Regardless of bot type, the Rocket.Chat SDK requires you to create a configuration with some variables for your environment. This configuration can be stored in a
.envfile, for local development, for example. In production, they would need to be set on server startup.
The following is a list of all the environmental variables you can use in your project.
Variables marked with an asterisk (
*) are mandatory.
The common set for the majority of bots is to listen and respond to direct messages and all new public channels and private groups:
Note that you must add the bot's user as a member of the new private group(s) before it will respond.
Last modified 1yr ago