A Bot which uses official Reddit api to get any new post of a specific subreddit and automatically posts to a specified channel
- Bot is just one time setup you can simply deploy and it will run without any more input
- Can choose any channel to post to or any subreddit to post from
To run this project, you will need to add the following environment variables to your .env file
-
API_ID
You Can Get it from here . -
API_HASH
You Can Get it form here . -
BOT_TOKEN
Search @BotFather in telegram. -
REDDIT_PERSONAL_USE_SCRIPT
Go here to know how to get it. -
REDDIT_SECRET
you will get this in same process as above -
AGENT
you will get this in same process as above -
SUBREDDIT
Target subreddit you want to post from (dont inclucer/
simply write memes instead of r/memes for example) -
CHANNEL_ID
Target channel username(without the @) where you want to post the images (Goes without saying but add the bot to the cahannel and make admin)
-
The Buttons can pe pressed multipe times by user (for the life of me I cant figure out SQL to make the buttons work properly), still does not affect the main purpose of the bot.
-
Sometimes posts may get repeated if the newest post gets deleted on reddit or the bot restarts (I dont know how to fix it).