Skip to main content

Configure The Bot

We need to do some configuration before we can use the bot.

Setting up the Reddit app

First, you will need to get some credentials from Reddit. These values are:

REDDIT_CLIENT_ID REDDIT_CLIENT_SECRET REDDIT_USERNAME REDDIT_PASSWORD

You can get these values from here.

Note that you need to be logged in to your Reddit account. This account cannot be a Google account or any other social login. It must be a Reddit account with a username and password. The next step will be the most essential in this entire section. Avoid any errors here!

Head over to this page. Once you are here, you should scroll down and click a button saying create another app... (it could be different if it's your first app). Once you click it, you should see:

reddit

Name: you can put in any name, for example: reddit-bot

Radio Buttons: where it shows you the three radio buttons, pick the third one (script).

Description: put in anything, it does not matter.

About URL: link any webpage like https://google.com.

Redirect URI: link any webpage like https://google.com.

Great, you created the app! Now you need to give the values to the bot.

Image

The text under "personal use script" is your REDDIT_CLIENT_ID, the text right next to SECRET is your REDDIT_CLIENT_SECRET (DO NOT SHARE THIS WITH ANYONE).

The text where it says developers is your REDDIT_USERNAME, and REDDIT_PASSWORD is your Reddit account's password. Your information is not logged.

Obtaining TikTok SessionID

If you want to use the TikTok TTS, you need a TikTok account. The process of obtaining a SessionID can be difficult.

  1. Log in to the TikTok Web App
  2. Install the Cookie Editor extension for your browser.
  3. Open the extension and look for sessionid
  4. Copy it
  5. Paste it in the config.toml at tiktok_sessionid