Skip to content

Example implementation of interaction with the MeBots GroupMe bot API in Ruby, using the `mebots` gem.

License

Notifications You must be signed in to change notification settings

MeBots/mebots-example-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example implementation of interaction with the MeBots GroupMe bot API in Ruby, using the `mebots` gem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages