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.
git clone https://github.com/heyAyushh/RocketBOT
cd RocketBOT && npm install
node index.js
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 subscribedMICROSOFT_APP_ID
// Microsoft APP ID from Registration portal
MICROSOFT_APP_PASSWORD
Microsoft APP secret from Registration Portal
<-----------------KUDOS-------------------------------------->