Skip to content

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

License

Notifications You must be signed in to change notification settings

MeBots/mebots-example-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ad5fe18 · Oct 18, 2022

History

15 Commits
Oct 18, 2022
Sep 21, 2019
Sep 21, 2019
Oct 18, 2022
Oct 18, 2022
Oct 18, 2022

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published