LucidMach / taewonsu

a customizable bot that takes top memes of the day from any r/subreddit and posts them on your instagram page

Home Page:https://taewonsu.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TAEWONSU

a customizable bot that takes top memes of the day from r/subreddit and posts them on your instagram page

Guides

1. Heroku SetUp Video Guide

Heroku SetUp Video Guide

SetUp

  1. install any LTS nodejs (latest recommended)

  2. clone/fork and clone to your local repository

    git clone https://github.com/LucidMach/taewonsu.git
    
  3. install all dependencies

    // using yarn
    yarn
    
    // using npm
    npm i
    
  4. create a file .env and set the following environment variables

    IG_USERNAME=#{your_username}
    IG_PASSWORD=#{your_password}
    R_SUB=#{subreddit_name}
    IG_HASHTAGS=#{list of hashtags}
    

    NOTE: to customize caption you'll have to dig into the code yourself... cuz this project was started with the major intention being creditting the original creators

    SIDE-NOTE: DO NOT type in the #{}

  5. test it locally on your machine with:

    // requires typescript so might need tsc being installed globally
    yarn dev
    
    // doesn't require typescript
    yarn start
    
  6. deploy...

    this repo is preconfigured for a heroku deploy...

    don't forget to include the env variable in heroku's config variables

  7. setup a webhook that'll trigger the bot every day/hr (IFTTT recommended)

    IFTTT's guide to webhooks

    7.a. create a new applet at IFTTT

    IFTTT HOME

    7.b. set if this condition to day and time

    IFTTT IF THIS

    7.c. set applet to trigger at a specific time

    IFTTT DAY and TIME

    7.d. set then that condition to webhooks

    IFTTT THEN THAT

    7.e. set URL for webhook

    IFTT WebHooks

About

a customizable bot that takes top memes of the day from any r/subreddit and posts them on your instagram page

https://taewonsu.herokuapp.com/


Languages

Language:TypeScript 99.5%Language:Procfile 0.5%