Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.19 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.19 KB

Sample GroupMe Ruby Bot using MeBots

Python | JavaScript | Ruby

Introduction

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.

Setup

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

Author

Erik Boesen