vaccine-stats-plugin
Version:
A Module to Get Various Vaccine Statistics Related to India from Various Sources and Additionally Can tweet with the Given Configuration
16 lines (13 loc) • 390 B
JavaScript
const { TwitThread } = require('twit-thread');
const reformTweet = require('./reform-tweet');
async function tweeter(config, tweetArray) {
try {
const threader = new TwitThread(config);
const reformedTweet = reformTweet(tweetArray);
await threader.tweetThread(reformedTweet);
return true;
} catch (e) {
return false;
}
}
module.exports = tweeter;