Skip to main content

Hivatalos MDBL API wrapper Pythonhoz!

Példa

import mdbl
import discord
from discord.ext import commands
import asyncio

class MDBLAPI(commands.Cog):

    def __init__(self, bot):
        self.bot = bot
        self.mdbl = mdbl.Bot()

    @commands.command()
    async def link(self, ctx):
        mdbl_link = self.mdbl.botlink(bot.user.id)
        await ctx.send(mdbl_link)

def setup(bot):
    bot.add_cog(MDBLAPI(bot))

Metadata

Release files for MDBL-API 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 MDBL-API 1.0.2
File Size Uploaded
MDBL API-1.0.2.tar.gz 1.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MDBL-API 1.0.2
File Interpreter ABI Platform
MDBL_API-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.2 kB

Release files / MDBL API-1.0.2.tar.gz

Download URL MDBL API-1.0.2.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6ccc154238c898c7c552448e0dc3e6fda7a110c9cf16d8932b1c1d462bd0d9fa
BLAKE2b-256 checksum
How to use checksums
2a6862669d81f8f9ff09372b7c8c6912e964b2e594ee7d0dff16be1cb5df6073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release files / MDBL_API-1.0.2-py3-none-any.whl

Download URL MDBL_API-1.0.2-py3-none-any.whl
Size 1.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1090029d6280da22dec2176abc30a98100215e141f9e2c2df17906bbc9eb05d4
BLAKE2b-256 checksum
How to use checksums
9a86e63ffda3a332e9388ba4be53eed99d3b6d5370d1d3df60af8d86b7326fa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.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