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.MDBL()

    @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-1.0.8.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

mdbl-1.0.8-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file mdbl-1.0.8.tar.gz.

File metadata

  • Download URL: mdbl-1.0.8.tar.gz
  • Upload date:
  • Size: 1.9 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-1.0.8.tar.gz
Algorithm Hash digest
SHA256 8a3ca3eaf17ad249f886e04b6804b72cb8c4e9736769e2b923e77862afbc1ce4
MD5 0b3c89399aef87d3804049bbb3365386
BLAKE2b-256 372562218ac380b0576bf24b938aaf644531702ecbc21492aaf4fe24928cc168

See more details on using hashes here.

File details

Details for the file mdbl-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: mdbl-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 2.1 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-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6adad93c39d6f11380cf5e5cd614a48b242da617140c3ae7c1fa70ffebeec452
MD5 0d7c2bd7d1c0f478456e1b69303f5d49
BLAKE2b-256 2db3e92a310c022553bedc0132a69c9af20c8cd763699e02c2222918825f601f

See more details on using hashes here.

Supported by

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