-
Click Remix your own , top right.
-
edit
.env
file with your own server information:
Environment Config
# the URL of your Rocket.Chat server
URL=my.server.com
# the bot's user and password - make sure user
# has 'bot' role on the server, ask your
# administrator if necessary
USER=foxbot
PASS=mypassword
# name that the bot should respond to
BOT=foxbot
# set to true if the server requires SSL (https://)
SSL=true
# the room(s) in which the bot should operate
ROOMS=general
# note: .env is a shell file so there can't be spaces around =
- Logon to your Rocket.Chat server and start talking to the BOT!
a. Edit reply.js
with your own chatbot conversation.
b. Study the code to see how it works.
c. Get more information on advanced bot building at the Rocket.Chat Nodejs SDK.
Find out more about Glitch.