Skip to content

SmileyFace799/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My discord bot :D

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.

Setup Guide:

Setting up the bot:

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

  1. Download a release of the bot
  2. Put the downloaded .jar / source code inside a designated bot folder
  3. Create a folder named "tokens" (case-sensitive)
  4. Inside the newly created folder, create a text file named "{...}.token". Make sure the name is in all lowercase
  5. Open the newly created token file, and paste the bot's token inside it.
  6. Go back to the designated bot folder, and create a text file named "activeBot.txt" (case-sensitive)
  7. 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)
  8. 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.

Enabling Spotify features (v1.2.0+):

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

  1. Inside the "tokens"-folder, create a new file named "spotifyClient.sptoken" (case-sensitive)
  2. Inside the newly created Spotify token file, paste the following information:
    • Line 1: The Spotify client ID
    • Line 2: The Spotify client secret
  3. If done correctly, the bot should now be runnable with Spotify features enabled