mebots
Usage
First install with npm
or your favorite package manager:
npm install mebots
Import into your project:
const mebots = ;// Alternative:const Bot = Bot;// If you choose this option, simply instantiate the bot as `new Bot(...)` below.
Instantiate your bot by passing the shortname and token:
// var or let should work tooconst bot = mebots
You will likely want to store the token in an environment variable or config file of some sort. At any rate, don't commit it to GitHub! :)
Finally, use a promise structure to fetch the instance and post a message, using the id
field to fulfill the bot_id
key as discussed in GroupMe's documentation here!
bot;
Feel free to open an issue if you need help!