Discord Music Bot
Discord Music Bot
Around 2022-2023 the chatting software called Discord had a ton of different bots that you could add to your server. During those years a lot of the bots where getting their ability to play songs through youtube which ended in a lot of these bots getting take down for copy right issues. Since one of my favorite bots got taken down I took it apon myself to code my own so my server could not only have access to music but also create images and reactions to certain responses.
Bot configuration
This bot was coded with use of the Discord api using node.js which lead to some of the config file having some pretty unique ways to customize the bot.
prefix = "@mention"
game = "DEFAULT"
status = ONLINE
songinstatus= true
altprefix = "Cody"
These 5 different configs are the first that I edited. Most of them are self explanitory such as the prefix which allows you to change what you want to use to “Summon” the bot. I choose to go with just mentioning it in any of the channels but you can choose anything you want. One of the coolest parts of the config file is being able to choose the game its “playing” so you could set it to somthing like “Playing the best tunes on the best server”. It goes along with the songinstatus that will display the current song that is in the queue.
How its run
This bot is run off of a jar file that opens a gui so you can use it in a terminal sense as it runs locally off of your machine. Once the jar file is running on your machine you will see the bot come online in discord and you can start running commands in the chat. When one of the commands is run you can look in the jar file gui to see what command is run and how it is running.