2.0.1 • Published 3 years ago
probot.db v2.0.1
probot.db
ProBot embed messages feature based database, lol
Store your data in ProBot database easily, using the embed messages feature, for free :).
Installation
npm install probot.db
Usage
Now all you need is the server id that has ProBot in, and your auth token from probot.io.
const Database = require('probot.db');
const database = new Database('auth token', 'server id', { embedName: 'probot.db' });
await database.set('foo', 'bar');
await database.get('foo'); // bar
await database.delete('foo');
await database.clear();