Python | JavaScript | Ruby
A simple GroupMe bot that reacts to messages sent within a group, designed to demonstrate the MeBots API and serve as a template for other bots.
Please see this tutorial for general information about how to set up a Python bot, including Heroku setup instructions.
Documentation of the MeBots API can be found here.
Open bot.rb
in your favorite editor and find the line where the bot is instantiated:
BOT = Bot.new("your_bot_shortname_here", 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.
export BOT_TOKEN=0123456789abcdef
Or on Heroku:
heroku config:set BOT_TOKEN=0123456789abcdef