This repository is the source code for my discord bot.
The code is designed to be easily runnable on any bot account that has a stored token file. A token file is a plain text file with a bot token inside it.
These are the basic steps for setting up a working bot, and are also the only required steps for a working bot.
Requires: Bot account token
- Download a release of the bot
- Put the downloaded .jar / source code inside a designated bot folder
- Create a folder named "tokens" (case-sensitive)
- Inside the newly created folder, create a text file named "{...}.token". Make sure the name is in all lowercase
- Open the newly created token file, and paste the bot's token inside it.
- Go back to the designated bot folder, and create a text file named "activeBot.txt" (case-sensitive)
- Open the newly created text file, and paste the name of the token file that should be used when starting the bot, without the ".token" file extension (case-insensitive)
- If done correctly, the bot is now runnable. Upon running, it should print "{BOT_NAME} is ready" in the console
Note (1.0.0): The token file name in "activeBot.txt" is case-sensitive.
The bot also has certain Spotify features, allowing the bot to "play" songs, playlists & albums from spotify.
The bot doesn't actually play songs through Spotify (mainly because it can't), but it can get the song info from a link,
and then play the song on another platform, such as YouTube. This however, requires access to the Spotify API,
meaning a Spotify client ID & secret must be provided for these features.
Requires:Spotify client ID, Spotify client secret
- Inside the "tokens"-folder, create a new file named "spotifyClient.sptoken" (case-sensitive)
-
Inside the newly created Spotify token file, paste the following information:
- Line 1: The Spotify client ID
- Line 2: The Spotify client secret
- If done correctly, the bot should now be runnable with Spotify features enabled