Python | JavaScript | Ruby
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.
Papaya is meant to run on AWS Lambda using the Serverless framework.
To install serverless on your local machine:
npm install -g serverless
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.
To view your bot's logs:
serverless logs -f receive