Reddit API integrations using PRAW
These have changed. List coming soon. Delay fuction is being refactored. Coming soon.
-
Clone the plugin repo into the Auto-GPT's plugins folder.
-
Update your plugins_config.yaml file to enable the plugin. If you skip this step, the plugin won't be loaded.
AutoGPTReddit: config: {} enabled: true
-
Add Reddit API Credentials to your .env:
################################################################################ ### REDDIT API ################################################################################ # Client ID && Client Secret are found on the reddit applications portal REDDIT_CLIENT_ID= REDDIT_CLIENT_SECRET= REDDIT_USERNAME= REDDIT_USER_AGENT= REDDIT_PASSWORD= REDDITDELAY_MIN=5 REDDITDELY_MAX=10
- Navigate to App Preferences: Visit the Reddit App Preferences page.
- Initiate App Creation:
- Scroll to the bottom of the "authorized applications" section.
- Click on the link that says "are you a developer? create an app...".
- Configure App Details:
- Fill in the required fields.
- Choose "script" as the app type.
- Provide a redirect URI (e.g., http://localhost:8080).
- Enter a descriptive User Agent string (e.g., "MyRedditApp/1.0").
- Create the App: Click the "Create app" button.
- Retrieve Credentials:
- Find the
client_id
under the app name and copy it toREDDIT_CLIENT_ID=
. - Find the
client_secret
listed as "secret" and copy it toREDDIT_CLIENT_SECRET=
.
- Find the
- Update Environment File:
- Open or create the .env file in your project directory.
- Fill in the following lines with your details:
REDDIT_CLIENT_ID=
(paste the client_id from step 5a)REDDIT_CLIENT_SECRET=
(paste the client_secret from step 5b)REDDIT_USERNAME=
(enter your Reddit username)REDDIT_USER_AGENT=
(enter the user agent string you used in step 3d)REDDIT_PASSWORD=
(enter your Reddit password)
These instructions are specifically tailored to guide you through the process of filling out the given fields for the Reddit API setup. Make sure to keep your credentials secure and follow Reddit's guidelines when choosing a user agent string.