Rawrbot loads its configuration from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Flyingbacen/Discord-rawrbot/llms.txt
Use this file to discover all available pages before exploring further.
config.json file at startup using Python’s built-in json module. The file is read synchronously before the bot connects to Discord, so any missing or malformed fields will prevent the bot from starting. Place config.json in the project root alongside main.py. A ready-to-fill template called config_EXAMPLE.json is included in the repository to get you started quickly.
Configuration File Structure
The completeconfig.json file uses the following structure:
config.json
config_EXAMPLE.json to config.json and replace the placeholder values with your real credentials before running the bot.
Field Reference
Your Discord bot token. This value authenticates the bot with the Discord Gateway and is required for the bot to start. Obtain it from the Discord Developer Portal under your application’s Bot tab. The bot will raise an error and refuse to connect if this field is missing or invalid.
The Client ID for your Spotify application. This is used by the
/searchspotify command to authenticate with the Spotify Web API and search for tracks. Only required if you intend to use the Spotify search functionality. Obtain it from the Spotify Developer Dashboard.The Client Secret for your Spotify application. Used alongside
spotifyClientID to obtain an access token from Spotify’s OAuth endpoint. Only required for /searchspotify. Obtain it from the Spotify Developer Dashboard under your app’s settings.A Discord webhook URL. Used by the
/upload command when invoked in channel ID 1278161126860787837 to re-post uploaded files via webhook — this allows the message to appear with the invoking user’s display name and avatar rather than the bot’s identity. Only required if you are running the bot in that specific channel configuration.Getting a Discord Bot Token
Open the Discord Developer Portal
Navigate to https://discord.com/developers/applications and sign in with your Discord account.
Create a new application
Click New Application in the top-right corner, give your application a name (e.g.
Rawrbot), agree to the Developer Terms of Service, and click Create.Generate and copy your bot token
In the left sidebar, select Bot. Under the Token section, click Reset Token and confirm. Copy the token that appears — this is your
token value for config.json. Store it somewhere safe immediately, as Discord will not show it again without another reset.Getting Spotify Credentials
Open the Spotify Developer Dashboard
Go to https://developer.spotify.com/dashboard and log in with your Spotify account.
Create a new app
Click Create app, fill in a name and description, and set a Redirect URI. Any valid URI works here (e.g.
http://localhost) since Rawrbot uses the Client Credentials flow and does not require user authorisation redirects. Accept the terms and click Save.