Skip to content

MeBots/mebotspy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mebots PyPI version

Python library for interfacing with the MeBots API.

API documentation

Setup

First, install the module:

pip3 install mebots

Then, to use these functions, you must import the module:

import mebots

To create a new bot object:

bot = mebots.Bot('your_bot_shortname', 'bot token (from edit page)')
# You may wish to store your token in a config file or environment variable

You can obtain your API key as described here.

Retrieval Functions

Bot.instance(group_id) will get information on the instance of your bot that is in a given group. It returns an Instance object, which has the property id. That string can be passed to the GroupMe API when sending a message as described here.

See example.py for a complete usage example.

See this repository for an example of a fully-functioning bot in Python using MeBots.

Author

Erik Boesen

License

GPL

About

Python library for easy interaction with MeBots, a helpful API toolkit for managing GroupMe bots.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages