npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

memebot.exe

v1.0.0

Published

an instagram bot that pulls memes from reddit

Downloads

1

Readme

memebot.exe

Don't you ever want to become the enemy of the people? memebot.exe is a bot that downloads any post from any subreddit, along with the post's title, and reuploads it to Instagram, causing massive havoc and ruins relationships once your close friends or families find out.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See Installing for notes on how to deploy the project on a live system.

Prerequisites

You need Node.js and npm (which comes with Node.js) to use this bot.

Download Node.js and npm

Installing

Node packages

After downloading Node.js and npm, cd into the directory you installed the bot to and run npm i. It should automatically install all the needed modules for this bot to work.

Setup

Automated

Run node beepboop.js and the bot will perform first time setup. When the bot asks you if you want to use automated setup, type y or yes.

It will ask for Instagram account login details, and after it is given the info, it will store them locally at ./configs/account.json

The bot will then ask you to whitelist subreddits. This part is important as broken subreddits can cause the bot to crash.

When prompted, type in the subreddits, without the r/, that you want the bot to browse. Single subreddits like r/all works too. Any subreddits that are below 2 characters long will be fixed automatically. Your console should end up with something like this:

What subreddit(s) do you want to whitelist? (r/all works too. Do NOT include 'r/'. Seperate using commas. Make sure the subreddit exists, or the bot will spit out errors/crash later on.) dankmemes,memes,aww

Ensure that the subreddit you enter actually exists on Reddit, or you will be required to modify/delete subreddits.txt on your own to fix the bot.

The bot will finally ask you if you want to enable autohashtags, a feature where the bot will generate hashtags based on the title of the posts it uploads. Answer y or n accordingly.

Manual

Setting up manually is highly disencouraged as human error will likely occur. Anyways, here are the instructions:

Create the folder /configs/ in the same directory as where beepboop.js is. In /configs/, create two files, naming them account.json and subreddits.txt respectively.

In account.json, copy and paste this in: {"insta_username": "username", "insta_password": "password", "autohashtags": "option"}, replacing username and password with your own and option with either yes or no.

In subreddits.txt, type in the subreddits you wish the bot to browse, without r/ in front of it, seperating them with a comma. E.g. subreddits.txt would contain dankmemes,memes,aww

Afterwards, run beepboop.js and the bot will create the rest of the needed directories for you.

Modification of files

To add in your custom captions, open up beepboop.js and edit var customcaption = "<caption>";, replacing <caption> to anything of your liking.

account.json and subreddits.txt is open for modification in case you entered any info wrongly. To fix either of the files, simply delete it and follow the steps shown above here, for the file again.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details