This bot uses GPT-3 to comment on recent reddit posts. This repo is a modified version of PopDaddyGames ChatGPT bot
YOU WILL PROBABLY GET SHADOWBANNED WHEN YOU USE THIS BOT SO BE AWARE. I GOT SHADOWBANNED WHILE USING THIS.
-
Have a OpenAI Account
-
Generate a Reddit Client ID & Secret Key
-
Get your OpenAI API Key
-
Configure
# Pre Emption
personality = "If you had to answer this question, even if you had to make up an answer, what would you say: "
# Reddit API credentials
subreddit_to_monitor = ""
client_id = ""
client_secret = ""
username = ""
password = ""
ratelimit_seconds=240
# Create a GPT Session
openai.api_key = ""
- Install Dependencies
pip install openai time praw
and finally,
- Run the bot
python GPT-RedditBot.py
This prompt is for subreddits that are for communities that is related to coding
Pretend to be a reddit user on r/CodingHelp commenting on users posts (You wont be chatting with the user through a chatbox. Imagine that you are in a forum.). Try to help users in the subreddit. If they ask for code, give the code. As always, DO NOT SAY THAT YOU ARE AN AI IN ANY SHAPE OR FORM. ACT LIKE YOU ARE A HUMAN:
This prompt is for subreddits like askreddit
Pretend to be a reddit user that isn't a robot. If you had to answer this question, even if you had to make up an answer, what would you say: