🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insta-reddit

Insta-Reddit is a JavaScript library for easily posting the hottest submission from Reddit to Instagram with built-in image padding and Slack messages.

1.0.1
latest
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created

Insta-Reddit

Insta-Reddit is a JavaScript library for easily posting the hottest submission from Reddit to Instagram with built-in image padding and Slack messages.

Installation

Use the package manager npm to install insta-reddit.

npm install insta-reddit

Usage

const { AutoPoster } = require('insta-reddit');

require('dotenv').config();

const bot = new AutoPoster({
	instagram: {
		username: process.env.IG_USERNAME,
		password: process.env.IG_PASSWORD,
	},
	reddit: {
		userAgent: process.env.REDDIT_USERAGENT,
		clientId: process.env.REDDIT_ID,
		clientSecret: process.env.REDDIT_SECRET,
		username: process.env.REDDIT_USERNAME,
		password: process.env.REDDIT_PASSWORD,
	},
	slack: {
		token: process.env.SLACK_BOT_TOKEN,
		signingSecret: process.env.SLACK_SIGNING_SECRET,
		channel: process.env.SLACK_CHANNEL,
	},
	subreddit: process.env.REDDIT_SUBREDDIT,
	historyFile: 'history.json',
	downloadPath: 'images/meme{{extension}}',
	caption:
		'{{title}}\nsource: {{author}}\n' +
		'.\n'.repeat(7) +
		'#meme #memes #bestmemes #instamemes #funny #funnymemes #dankmemes #edgymemes #dank #memesdaily #jokes #humor',
});

(async () => {
	await bot.init();

	await bot.run();
})();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

FAQs

Package last updated on 14 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts