@scom/scom-master-bot-command-widget
v0.1.1
Published
1. Start up the scom-master-bot. You may click [here]('https://github.com/scom-repos/scom-master-bot/blob/master/README.md') to check out how to start up the scom-master-bot. 2. Go to https://noto.fan/!#/messages, click on the master bot to start the cha
Downloads
12
Readme
How to interact with the master bot widget?
- Start up the scom-master-bot. You may click here to check out how to start up the scom-master-bot.
- Go to https://noto.fan/!#/messages, click on the master bot to start the chat.
- Type
/cmd
and click "Send". - There should be a widget prompt out from the chat window.
Example 1: Starting scraper bot using master bot widget
- Click on "Manage image" > "pull", in the image name text field, type in
benhoijs/scom-scraper-bot:latest
. - Click on "Execute".
- You can confirm if the master bot has successfully pull the image or not by checking the image list under "Manage image" > "list".
- Go to "Manage container" > "create"
- In the imageName field, type in "benhoijs/scom-scraper-bot:latest"
- In the containerName field, type in "scraper-bot".
- In the dockerConfig field, copy the following text and paste to the dockerConfig field:
{"ExposedPorts": {"8080/tcp": {}},"HostConfig": {"PortBindings": {"8080/tcp": [{"HostPort": "8080"}]}}}
- Click on "Execute".
- Go to "Manage container" > "config".
- In container field, type in "scraper-bot".
- In configPath, type in "config/config.js".
- In config field, fill in the config of the scraper bot.
- The scraper bot should be ready to use.
Example 2: Starting video converter service using master bot widget
- Click on "Manage image" > "pull", in the image name text field, type in
benhoijs/scom-video-converter:latest
. - Click on "Execute".
- You can confirm if the master bot has successfully pull the image or not by checking the image list under "Manage image" > "list".
- Go to "Manage container" > "create"
- In the imageName field, type in "benhoijs/scom-video-converter:latest"
- In the containerName field, type in "video-converter".
- In the dockerConfig field, copy the following text and paste to the dockerConfig field:
{"ExposedPorts": {"8200/tcp": {}},"HostConfig": {"PortBindings": {"8200/tcp": [{"HostPort": "8200"}]}}}
- Click on "Execute".
- The video converter service should be started on port 8200. You may click here to see how to use the video converter service.