https://github.com/heyayushh/rocketbot
A chatbot that enables toggling of a Switch
https://github.com/heyayushh/rocketbot
botframework mqtt
Last synced: 9 days ago
JSON representation
A chatbot that enables toggling of a Switch
- Host: GitHub
- URL: https://github.com/heyayushh/rocketbot
- Owner: heyAyushh
- Created: 2018-01-08T10:52:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T17:04:43.000Z (over 8 years ago)
- Last Synced: 2025-03-11T20:19:23.013Z (about 1 year ago)
- Topics: botframework, mqtt
- Language: JavaScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Mqtt ChatBot Sample

[](https://github.com/standard/standard)
[](https://docs.microsoft.com/en-us/bot-framework/)
[](http://hits.dwyl.io/RocketBOT/https://github.com/heyAyushh/RocketBOT)
This is a sample chatbot that can toggle a switch or relay ( MQTT Powered Device ).
IT first Subscribes to the same topic as the Relay/Switch
and Publishes as the Chatbot recieve Instructions.
## Installation
[](https://heroku.com/deploy?template=https://github.com/heyAyushh/RocketBOT)
### or install and run it Locally
>```git clone https://github.com/heyAyushh/RocketBOT ```
> ```cd RocketBOT && npm install```
> ```node index.js```
## Register the bot on Azure portal
>> https://dev.botframework.com/
## Set Environment Variables
> ```MQTThost``` // This is the IP of MQTT Broker
> ```MQTTport``` // The port number of MQTT process
> ```MQTTusername``` // The username of MQTT config, Leave it empty if you don't have one
> ```MQTTpassword``` // The password of MQTT config, Leave it empty if the above
> ```MQTTtopic``` // MQTT topic on which the key is subscribed
> ```MICROSOFT_APP_ID``` // Microsoft APP ID from Registration portal
> ```MICROSOFT_APP_PASSWORD``` Microsoft APP secret from Registration Portal
<-----------------KUDOS-------------------------------------->