Skip to content
unexpected unresolved edited this page Oct 19, 2024 · 2 revisions

If you see this page, your answer is here. Read carefully before asking, or we have rights to completely ignore you, don't blame us for why this is so.

1. How can I config my bot's database completely? / Why I have Invalid config [MissingKey] error log?

Please follow this form (tested)

MongoDB

features:
  DATABASE:
    driver: "mongodb"
    config: 
      uri: "mongodb://127.0.0.1:27017/byteblaze"

MySQL

features:
  DATABASE:
    driver: "mysql"
    config: 
      host: "localhost"
      user: "me"
      password: "secret"
      database: "my_db"

JSON

features:
  DATABASE:
    driver: "json"
    config: 
      path: "./byteblaze.database.json"

PostgresSQL

features:
  DATABASE:
    driver: "postgres"
    config: 
      host: "localhost"
      user: "me"
      password: "secret"
      database: "my_db"

2: Why I have Error: Used disallowed intents error log?

Because you have message_content enabled on bot, you have 2 ways:

1: Disable message_content on the bot:

features:
  MESSAGE_CONTENT:
    enable: false
    commands: 
      enable: false
      prefix: "d!" # The prefix you want

2: Enable message_content on discord portal like this: image

3: How can I invite bot to my server?

Go to discord developer portal image

Click on the bot that you want to invite, you will see something like this: image

Click on Oauth2 tab, you will see something like this: image

Scroll down and tick all check box that same like this example: image image

Click on copy button below and use that link to invite your bot to your server.

4: How can I use the dev version of ByteBlaze? [NOT RECOMMENDED]

The only official way to use dev version is through git. If you have installed git, follow all the step below:

1: Type git reset --hard HEAD to restore to default source

2: Type git switch dev to switch to dev branch

3: Remove node_modules folder

4: Reinstall / Rebuild the bot and enjoy.

5. How can I turn back to normal version of ByteBlaze?

If you have installed git, follow all the step below:

1: Type git reset --hard HEAD to restore to default source

2: Type git switch main to switch to main branch

3: Remove node_modules folder

4: Reinstall / Rebuild the bot and enjoy.

If you don't use git, you will have to delete all the ByteBlaze folder and install latest one

6. Why sometimes Spotify not working properly?

Spotify have stream restrictions, so the audio that you heard is actually from YouTube. So if the track is not available in YouTube but exist in Spotify, it can't play. This is from lavalink side