@Husky.event
Event is a piece of code that is triggered when the bot detects something has happened
@Husky.command()
Command is a piece of coed which is triggered when a user tells the bot to trigger
intents = discord.Intents.default()
intents.members = True
#? Setting Prefix
Husky = commands.Bot(command_prefix="!", intents=intents)
@Husky.event
async def on_member_join(member):
role = discord.utils.get(member.guild.roles, name="MEMBER")
await member.add_roles(role)
*You also have to enable privileged intents in the developer portal - GUIDE
@Husky.commands(aliases=["4to5"])
async def _4to5(ctx):
...
Documentation: discordpy.readthedocs.io
Youtube: youtube.com/playlist
Colors codes for embeds: gist.github.com/thomasbnt/...
Access google sheets in python using Gspread: codingpub.dev/access-google-sheets-in-python-using-gspread