Skip to main content

mariocard.py

Discord server invite PyPI version info

This is simple maker for cards in discord bot in discord.py or pycord.

Installing

Python 3.8 or higher is required

# Linux/macOS
pip3 install -U mariocard.py

# Windows
pip install -U mariocard.py

Level Card Example

from discord.ext import commands
from mariocard import *

client = commands.Bot(command_prefix=".")

@client.command()
async def card(ctx):
    #creating levelcard object
    levelcard = LevelCard()

    #setting avatar url for image
    levelcard.avatar = ctx.author.avatar_url

    #setting member name
    levelcard.name = ctx.author

    #setting xp for bar on card
    levelcard.xp = 10

    #setting required xp for bar on card
    levelcard.required_xp = 20

    #setting level to text on crad
    levelcard.level = 2

    #sending image to discord channel
    await ctx.send(file=await levelcard.create())

client.run("token")

Generated Level Card

Created card from example code

Welcome Card Example

from discord.ext import commands
from mariocard import *

client = commands.Bot(command_prefix=".")

@client.command()
async def card(ctx):
    #creating levelcard object
    levelcard = LevelCard()

    #setting avatar url for image
    levelcard.avatar = ctx.author.avatar_url

    #setting member name
    levelcard.name = ctx.author

    #setting server name
    levelcard.server = ctx.guild.name

    #sending image to discord channel
    await ctx.send(file=await levelcard.create())

client.run("token")

Generated Welcome Card

Created card from example code

Change Log

version 1.0.0: -first version

version 1.0.1: -added documentation

Metadata

Release files for mariocard.py 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mariocard.py 1.0.2
File Size Uploaded
mariocard.py-1.0.2.tar.gz 36.2 kB Details

Release files / mariocard.py-1.0.2.tar.gz

Download URL mariocard.py-1.0.2.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
150f09475467641b705148f090f21b8afbb017601dede9afe749d76524c59487
BLAKE2b-256 checksum
How to use checksums
52ffb7d6e6e895957b1407f2372eb855c3fe32ba974d97b10f5a3fad81ceebb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page