https://github.com/dongri/hubot
https://github.com/dongri/hubot
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dongri/hubot
- Owner: dongri
- Created: 2020-04-28T09:21:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T17:34:11.000Z (about 1 year ago)
- Last Synced: 2025-01-21T05:15:57.177Z (3 months ago)
- Language: CoffeeScript
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install nodejs
```
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash$ source ~/.bashrc
$ nvm list-remote
$ nvm install v12.16.2
$ node -v
v12.16.2
```# Install Hubot
```
$ npm install -g yo generator-hubot$ mkdir hubot
$ cd hubot
$ yo hubotOwner: [email protected]
Bot name: bot
Bot adapter: slack$ bin/hubot
bot> bot ping
bot> PONG
bot> exit
```# Install Forever
```
$ npm install -g forever
$ npm install -g coffee-script
```# Get Slack Token
https://slack.com/appsSearch for hubot in the Search App Directory and install it.
```
API Token: xoxb-123456789-123456789-123456789ABCDE
```# run.sh
```
$ vim run.sh
export HUBOT_SLACK_TOKEN=xoxb-123456789-123456789-123456789ABCDE
forever start -a -l ~/hubot.log -c coffee node_modules/hubot/bin/hubot -a slack
```# Run on Docker Compose
```
$ vim docker-compose.yml# Setting slack token
environment:
- HUBOT_SLACK_TOKEN=xoxb-123456789-123456789-123456789ABCDE$ docker-compose up
```