Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.02 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.02 KB

Sample GroupMe NodeJS Bot using MeBots

Python | JavaScript | Ruby

Introduction

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.

Setup

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

Author