A simple GroupMe bot that reacts to messages sent within a group, designed to demonstrate how to use the MeBots API and serve as a template for other bots.
Open index.js
in your favorite editor and find the line where the bot is instantiated:
let bot = new mebots.Bot('your_bot_shortname_here', process.env.BOT_TOKEN;
Replace your_bot_shortname_here
with the shortname of your bot, which is visible while editing your bot on the MeBots web interface.
Then, set the BOT_TOKEN
environment variable in your shell to the token available in the bot editing panel on the MeBots website.
export BOT_TOKEN=0123456789abcdef
Or on Heroku:
heroku config:set BOT_TOKEN=0123456789abcdef