Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.
/ CablePorn Public archive

Small bot that get images from reddit and post them on Twitter.

Notifications You must be signed in to change notification settings

Heazher/CablePorn

Repository files navigation

CablePorn Twitter bot.

This is the core of @CablePorn_, This software is made to link r/CablePorn and Twitter
At each start it will fetch all the posts from Reddit, and save them in the database with all the links (images, ID, Author, Posts Link) and if the post has been sent to twitter or not.
Every days at 2PM GTM (11PM JST) it will check for the latest post in the database and post it on twitter.

Config file:

To run this bot you will need:

  • Access to Twitter API.
  • A mongoDB Database

Copy the config.json.exemple and name the file config.json
You should have something like this:

{
    "dbLink": "mongodb+srv://[USERNAME]:[PASSWORD]@[DATABASE DNS/IP]/CablePorn",
    "consumer_key": "[TWITTER_API_KEY]",
    "consumer_secret": "[TWITTER_API_SECRET]",
    "access_token": "[TWITTER_ACCESS_TOKEN]",
    "access_token_secret": "[TWITTER_ACCESS_TOKEN_SECRET]",
    "account": "[BOT_ACCOUNT_NAME]"
}

Fill all the information.
Note: account must be the bot account name without the @. for me it would look like this: "account": "_RiseDev"

More information:

This bot is running on NodeJS 16, we havent tested it on older version, because this is a side project, and our main project Yukiko is running on NodeJS 16.
This bot is owned by Yukiko Dev Team

About

Small bot that get images from reddit and post them on Twitter.

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •