0.0.2 • Published 5 years ago

hubot-dialogs v0.0.2

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

Hubot adapter for dialog

Easily bring the friendly robot sidekick Hubot to dialog!

Setup: Docker

The quickest way to run Hubot is the Docker image!

docker run -it \
    -e DIALOGS_TOKEN=xxx \
    -e DIALOGS_ENDPOINT=https://grpc-test.transmit.im:9443 \
    -e BOT_SCRIPTS=hubot-pugme,hubot-help \
    terorie/hubot-dialogs

To include custom scripts, use -v $PWD/scripts:/home/hubot/scripts \.

See all settings here. Syntax is -e <Key>=<value> \

(Based on Rocketchat's image)

Setup: Manual

# 1. Install command-line tools
npm i -g yo generator-hubot

# 2. Create workspace
mkdir hubot && cd hubot

# 3. Generate new bot
yo hubot

# 4. Install Dialog adapter
npm i hubot-dialogs

# 5. Edit external-scripts.json
     and/or install your own scripts
# ...

# 6. Start the bot
#    It will now respond to any Dialog
#    messages prefixed with "coolbot".
#    You can change the name (-n flag).
bin/hubot -a dialogs -n coolbot

More information in the Hubot docs

Environment variable reference

KeyMeaningExample
BOT_NAMEBot NameCoolBot
BOT_SCRIPTSComma-separated list of script packages on npmhubot-pugme,hubot-help
DIALOGS_ENDPOINTGRPC Server URLhttps://grpc-test.transmit.im:9443
DIALOGS_TOKENDialog bot tokenlooks like a6bc21d0...
0.0.2

5 years ago

0.0.1

5 years ago

0.0.5

5 years ago