Skip to content

MeBots/mebots-example-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample GroupMe Python Bot using MeBots

Python | JavaScript | Ruby

Introduction

A simple GroupMe bot that reacts to a user saying "ping" in a group. Designed to demonstrate the MeBots API and serve as a template for other bots.

Please see this tutorial for to get general intuition on how a Python bot works in GroupMe, but note that the approach for running a MeBots bot will be quite different.

It is recommended to run this example bot, and other bots, on AWS Lambda or a similar serverless host, using the serverless package. This approach is convenient for GroupMe bots because they only run to generate a response once in a while, so most bots can be hosted for free.

Prerequisites

Papaya is meant to run on AWS Lambda using the Serverless framework.

To install serverless on your local machine:

npm install -g serverless

Deployment

Install pip dependencies locally in the vendor directory:

pip install -r requirements.txt -t vendor

Deploy using serverless:

serverless deploy

The bot should now be ready to receive messages! A lambda function URL will be logged that can be used as the MeBots bot callback URL to receive messages.

Check out the MeBots Help Group if you need any guidance.

Logs

To view your bot's logs:

serverless logs -f receive

Author

Erik Boesen

About

Example implementation of interaction with the MeBots API in Python, using the `mebots` Python package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages