For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dashboard Setup

The Drako Bot dashboard provides a powerful interface for managing your Discord bot. This guide walks you through the setup and configuration process.

Prerequisites

Before configuring the dashboard, ensure you have:

  • Node.js 24 LTS installed (24.12.0 or newer)

  • The dashboard addon installed in addons/dashboard and a dashboard license key

  • Access to your Discord server with administrator permissions

Basic Configuration

1

Discord Application Setup

  1. Go to the Discord Developer Portal.

  2. Select your application (Bot).

  3. Navigate to the OAuth2 section.

  4. Add a redirect URL:

    • Use: http://IP:PORT/api/auth/callback

    • Make sure to replace IP & PORT with actual values.

  5. Copy your Client ID and Client Secret from the OAuth2 page.

2

Dashboard Configuration

In your config/core.yml file, configure the following settings:

Dashboard:
  Enabled: true
  LicenseKey: YOUR_DASHBOARD_LICENSE_KEY
  ClientID: YOUR_CLIENT_ID
  ClientSecret: YOUR_CLIENT_SECRET
  URL: http://IP:PORT
  Port: 3000

Replace the placeholders with your actual values:

  • YOUR_CLIENT_ID: Your Discord application's Client ID

  • YOUR_CLIENT_SECRET: Your Discord application's Client Secret

3

Permissions Configuration

The server owner and administrators can sign in by default. To give other roles access, open Settings → Dashboard Access and assign their permissions.

Restart the bot, then open your configured dashboard URL.

Advanced Configuration

Appearance Settings

Open Settings in the dashboard to change its branding, colors, logo, and page title.

Security Considerations

Session Secret

  • Use a strong, random string for SessionSecret.

  • Minimum recommended length: 32 characters.

  • Keep this secret secure and never share it.

Troubleshooting

Common Issues

Cannot Access Dashboard
  • Verify the correct port is open.

  • Check if the Discord application OAuth2 settings are correct.

  • Ensure the user has the required role.

Authentication Errors
  • Verify ClientID and ClientSecret are correct.

  • Check if the redirect URL matches exactly.

  • Ensure SessionSecret is properly set.

  • Ensure that the URL has no trailing /, such as http://192.168.0.0:3000/.

Example: URLs should always be filled in as URL: "http://localhost:3000" and not "http://localhost:3000/".

Permission Issues
  • Verify role IDs are correct.

  • Check if roles are properly assigned.

  • Ensure the bot has necessary permissions.

Last updated