You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are testing scripts that require persistence (redis brain), make sure you start Redis:
30
-
31
-
```
32
-
redis-server &
33
-
```
34
-
35
-
Hubot absorbs all of its configuration from environment variables, so you will want to create a `.config` file, and store the variables you need there. It's suggested to name the file `secret-dev-hubot.config`, since that is already listed in the `.gitignore` file.
36
-
37
-
Once you have your config file, you can start hubot locally in shell using:
Hubot is able to load scripts from third-party `npm` package. Check the package's documentation, but in general it is:
112
-
113
-
1. Add the packages as dependencies into your `package.json`
114
-
2.`npm install` to make sure those packages are installed
115
-
3. Add the package name to `external-scripts.json` as a double quoted string
116
-
117
-
You can review `external-scripts.json` to see what is included by default.
118
-
119
-
## Persistence
120
-
121
-
The bot relies on Redis for persistance; the data stored in Redis is consumed by Upboard to automatically fill out initial emergency info. While Redis is not required for local development, upon deployment, Redis should be available.
122
-
123
-
In addition, persistance will ensure that if the bot is restarted, emergency state is retained for all rooms.
124
-
125
-
If you are going to use the `hubot-redis-brain` package (strongly suggested), you will need to setup Redis and manually set the `REDIS_URL` variable.
126
-
127
-
[redis]: https://redis.io/
128
-
129
-
## Adapters
130
-
131
-
Adapters are the interface to the service you want your hubot to run on. This
132
-
can be something like Campfire or IRC. There are a number of third party
133
-
adapters that the community have contributed. Check
134
-
[Hubot Adapters][hubot-adapters] for the available ones.
135
-
136
-
If you would like to run a non-Campfire or shell adapter you will need to add
137
-
the adapter package as a dependency to the `package.json` file in the
138
-
`dependencies` section.
139
-
140
-
Once you've added the dependency and run `npm install` to install it you can
141
-
then run hubot with the adapter.
142
-
143
-
$ bin/hubot -a <adapter>
144
-
145
-
Where `<adapter>` is the name of your adapter without the `hubot-` prefix.
0 commit comments