-
Notifications
You must be signed in to change notification settings - Fork 1
API Configure
Caution
Don't share this API data with anyone because you can get compromised. If this happens, reset the tokens and get them again.
- Open the Discord Developer Portal and log into your account.
- Click on the "New Application" button.
- Enter a name and confirm the pop-up window by clicking the "Create" button.
You should see a page like this:
You can edit your application's name, description, and avatar here. Once you've done that, then congratulations—you're now the proud owner of a shiny new Discord bot! You're not entirely done, though.
- On "General Information" page copies the Application ID, this is your Client ID.
- On the sidebar select section "Bot"
- Press "Reset token" button and copy token.
- Also enable all "Privileged Gateway Intents"
Preferable to provide cookies for YouTube. This will allow you to play 18+ videos and bypass YouTube rate limiting error (429 Error). I highly recommend that you create a new Google account from which you can get the cookie.
Warning
Time to time, cookies are resets by YouTube, so you need to retrieve it again. It's so annoying, but hasn't figured out a way to automate the cookie retrieval process. If you know workaround, please create the issue
- Install an extension for extracting cookie, EditThisCookie
- Go to YouTube
- Log in to your account. (You should use a new account for this purpose)
- Click on the extension icon and click "Export" button.
- Create file yt-cookies.json and paste cookie in this file
If you do not provide token and UID, Yandex Music will not work at all.
Warning
If your bot is outside Russia VDS, you must have a Yandex Plus subscription to play songs.
- Login into Yandex account.
- Download browser extension
This must look like this
- Click "Скопировать токен" button.
- Login into Yandex account.
- You can retrieve uid by opening Yandex Mail and copy uid from the url in the address bar.
Spotify Module can work without provided data, but for more stability better provide custom application data.
Warning
If you want to fetch playlist with more than 100 songs, this API data is required!
- Login in Spotify Developer Dashboard
- Press "Create app" button
- Fill the fields like this
- Press "Save"
- On the redirected page, press "Settings"
- On "Basic Information" section copy Client ID.
- Under the Client ID field, press "View Client Secret" and copy Client Secret.
- Go to SoundCloud and login.
- Open up the dev tools (Right-click -> inspect) and go to the Network tab.
- Refresh the page with opened dev tools.
- Find the request that has the name session (you can filter by typing session in the filter box) and click on it
- Go to the Payload tab
- You should see your client id in the Query String Parameters section, and your oauth token (access_token) in the Request Payload section
Warning
Provide to enable /lyrics command and lyrics button in audioplayer
- Go to Genius and login.
- Go to Genius Developer Dashboard and create a new app
- Generate and copy client access token