Socket
Socket
Sign inDemoInstall

insta-reddit

Package Overview
Dependencies
408
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 14 Feb 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc