There are also comments there thatĭirect you how to changed the channel the announcement will be placed in. If you do not want automatic roles the two lines to remove are marked in the welcome.py file. These should be changed to your unique needs, and the role should be created and customized in your server first. They will be greeted in your "general" chatĪnd given the role "Example" automatically. These are automated functions that will activate on a new member joining. "SERVER MEMBERS INTENT" this will allow the function to welcome new members. In order to use the welcome functions you must enable "Privileged Gateway Intents" on the discord developer page under the Bot section. The Administration functions can be removed if undesired by deleting Admin.py from the directory and removing line 29 from bot.py 'client.load_extension('Admin')' This is the command that loads in the Cog. Requires the "Administrator" or "Admin" role. This will disconnect the named user from voice channels. Anything in () are alternate command shortcuts/names COMMAND DOCUMENTATION: NOTE:Īnything in is an argument required by the function. Everything is essentially role based to keep unwanted users from flooding the bot. (Future releases will have variable role names you can set in the code)Īdmin functions will either need kick ban permissions for some commands or an "Admin" or "Administrator" In order for music commands you must make a "Dj", "Administrator" or "DJ" role in discordĪnd assign it to those you want to be able to play songs. (makes logical sense anyways.) Preparing to use the bot: Most commands have error handling for this now, run a play or playl command before trying to pause or The player object doesn't exist until at least one play related command has been issued in a session. It will not need to be redone for the entirety of the bots run time. Note:īefore many commands will work, an initial "play" command will need to be made. Will automatically be brought into the container.īoth terminals must remain running for the bot to be live, consider using tmux. env and Playlist folder (if you have existing playlists) and they Then place the dockerfile on the same level as the Bot folder (not inside) then run a normal buildĬommand. In order to use the file place the github files in a folder named Bot, If you wish to run the bot in a docker container the Docker folder provides aĭockerfile to do so. Important: You must also place your discord bot token in the. Ez bot auto queue tutorial password#If you want to change the lavalink password you must change it in the application.ymlĪnd in both music.py and playlist.py on the commented lines where 'changeme123' is located. setup will send a message on how to configure the bot as long as you are the server admin. Keep the same file structure as the github repo for this to work, place Lavalink.jar at the "root" of the project.Īlso. MUST BE DOWNLOADED AND PLACED IN DIRECTORY (It can also be found in other Git branches. Lava link is not my creation and can be found at: (psutil does not need to be installed if cpu functions are not needed, see more below.) Ez bot auto queue tutorial install#You must install python-dotenv, discord.py, lavalink.py and psutil, links are listed below. The bot is written in and requires Python3 You must have java 11 (or java 13) for lavalink. This is a personal project of mine to create an easy to use and reliable discord music bot.Ĭheck out our other project written in Node.js: General Setup Dependancies: How to create your own commands on NightbotĪdding your own commands is one of the best features of Nightbot, these can range from incredibly simple to heavily complicated.Discord Music Bot Created by Robert USF Computer Science. While this is the default set of commands that Nightbot starts with, there are plenty more you can add yourself as custom commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |