added /allservserver command to schow the owner all servser the bot is in
added /allservserver command to schow the owner all servser the bot is in
I added team member getting so all team members get a dm when the bot starts added 2 channel ids one for announcment of the bot when it restarts or pulls changes and one for a changelog i added a info command where you can see infos of the bot like version developers the original repo if it was forked
At first i started to implement this as an funktion with an client inside as seen in my first commits. But then i realized that discord.py has a native way of importing command listeners and so on to a bot so i scraped everything and started implementing it as a cog after a bit of struggeling at first on how to get the import and listeners to work i finally got it to work.
Features:
command syncyng to a guild or globally in cog_load
team id fetching and team dm sending on bot
startup
restart helper task to work with DiscordBotHelper
helper funktions:
check_team_member to check if a user is part of the team that owns the bot or the owner if it belongs to a user
is_team_member:
using check_team_member to create a decorator for /commands to make them only for team members
Build /lock_in command to work like discord status dnd and made /version command
Refactored Classes cause i was getting rate limited added git commands to have propper /version and /source commands
Build /help command added Readme and provided an invite link for the bot
I build a /setup flow which setups a Do not disturb voice channel and mute immune role i also made all messages a bit nicer looking and build fail saves for /shutdown and /restart so they can only be used in one server
I Built The bot now everytime you join a specific voice channel with the name do not disturb you get muted as admin and normal people just can’t speak i also built a /talk_with wich moves a user into your current voice out of the do not disturb. If that users status is dnd he wont get moved but instead gets send an dm with a link to the voice.
Learned basic sql querys and build a simple Dc bot to get deeper into discord.py
Learned More Basics
like embeds, buttons,modals and file managment
just SQL to go and i can start with the actual project (the yt vid is four hours 💀)
i Learned Discord.py basics using two yt vids