Package: maxi-card.py
This is simple maker for welcome and leave cards in discord bot in discord.py or pycord.InstallingPython 3.8 or higher is required# Linux/macOSpip3install-Umaxi-card.py# Windowspipinstall-Umaxi-card.pyWelcome Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.eventasyncdefon_member_join(member):#guild definitionguild=member.guild#welcome channel definition (id=YourWelcomeChannelID)channel=discord.utils.get(guild.text_channels,id=753239660230082690)#creating welcome card objectcard=WelcomeCard()#setting member namecard.member=member#setting account created timecard.datetime=member.created_at.strftime("%d, %B %Y, %H:%M %p")#setting servercard.server=guild#sending image to discord channelawaitchannel.send(file=awaitcard.create())client.run("TOKEN")Generated Welcome CardLeave Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.eventasyncdefon_member_remove(member):#guild definitionguild=member.guild#welcome channel definition (id=YourLeaveChannelID)channel=discord.utils.get(guild.text_channels,id=753239660230082690)#creating leave card objectcard=LeaveCard()#setting member namecard.member=member#setting account created timecard.datetime=member.created_at.strftime("%d, %B %Y, %H:%M %p")#setting servercard.server=guild#sending image to discord channelawaitchannel.send(file=awaitcard.create())client.run("TOKEN")Generated Leave CardWanted Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.command()asyncdefwanted(ctx):#creating wanted card objectcard=WantedCard()#setting avatar imagecard.avatar=ctx.author.avatar_url#sending image to discord channelawaitctx.send(file=awaitcard.create())client.run("TOKEN")Generated Wanted CardDelete Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.command()asyncdefdelete(ctx):#creating delete card objectcard=DeleteCard()#setting avatar imagecard.avatar=ctx.author.avatar_url#sending image to discord channelawaitctx.send(file=awaitcard.create())client.run("TOKEN")Generated Delete CardTrash Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.command()asyncdeftrash(ctx):#creating trash card objectcard=TrashCard()#setting avatar imagecard.avatar=ctx.author.avatar_url#sending image to discord channelawaitctx.send(file=awaitcard.create())client.run("TOKEN")Generated Trash CardTombstone Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.command()asyncdeftombstone(ctx):#creating tombstone card objectcard=TombstoneCard()#setting avatar imagecard.avatar=ctx.author.avatar_url#sending image to discord channelawaitctx.send(file=awaitcard.create())client.run("TOKEN")Generated Tombstone CardHitler Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.command()asyncdefhitler(ctx):#creating hitler card objectcard=HitlerCard()#setting avatar imagecard.avatar=ctx.author.avatar_url#sending image to discord channelawaitctx.send(file=awaitcard.create())client.run("TOKEN")Generated Hitler CardJail Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.command()asyncdefjail(ctx):#creating jail card objectcard=JailCard()#setting avatar imagecard.avatar=ctx.author.avatar_url#sending image to discord channelawaitctx.send(file=awaitcard.create())client.run("TOKEN")Generated Jail CardPassed Card Exampleimportdiscordfromdiscord.extimportcommandsfrommaxicardimport*intents=discord.Intents.default()intents.members=Trueclient=commands.Bot(command_prefix="!",intents=intents)@client.command()asyncdefmissionpassed(ctx):#creating passed card objectcard=PassedCard()#setting avatar imagecard.avatar=ctx.author.avatar_url#sending image to discord channelawaitctx.send(file=awaitcard.create())client.run("TOKEN")Generated Passed Card