0.0.6 • Published 2 years ago
@iheredia/tweet-bot v0.0.6
tweet-bot
Bot that uses Twitter api's to tweet text strings and gifs
Installation
npm install @iheredia/tweet-bot
Usage
const TweetBot = require('@iheredia/tweet-bot');
const secrets = { // Replace with your own!
"consumer_key": "",
"consumer_secret": "",
"access_token_key": "",
"access_token_secret": ""
};
const tweetBot = new TweetBot({secrets: secrets});
tweetBot.tweet({
status: 'Hello world',
});
tweetBot.tweet({
status: 'Hello world - with a gif attached',
mediaPath: '/path/to/my/image.gif',
});
tweetBot.tweet({
status: 'I can also be verbose',
verbose: true
});