Skip to main content

Python API wrapper az Magyar Discord Bot Lista APIhoz.

Project description

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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MDBL API-1.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

MDBL_API-1.0.1-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file MDBL API-1.0.1.tar.gz.

File metadata

  • Download URL: MDBL API-1.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for MDBL API-1.0.1.tar.gz
Algorithm Hash digest
SHA256 65418be4a833934505acfe4212c379bba893412cf1540349678e5f52b549ab6c
MD5 58b6d1aa2ad6ca57965d4b802ccf86ee
BLAKE2b-256 0725038729a7327d0291004344689f4e0b72185cd5b74770edcd7f59dd6324e6

See more details on using hashes here.

File details

Details for the file MDBL_API-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: MDBL_API-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for MDBL_API-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 124e5921e998a6b4914f1e57bffce2a8e84609188056fb99f8ee243c60f9cf46
MD5 6da42ac6dd2ac9d08a8bdb24d1fead60
BLAKE2b-256 d1536a6e62e02ae5c126ef19a11ce784c8de8bb64ef83bc5edbc82e48558e88b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page