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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65418be4a833934505acfe4212c379bba893412cf1540349678e5f52b549ab6c
|
|
| MD5 |
58b6d1aa2ad6ca57965d4b802ccf86ee
|
|
| BLAKE2b-256 |
0725038729a7327d0291004344689f4e0b72185cd5b74770edcd7f59dd6324e6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
124e5921e998a6b4914f1e57bffce2a8e84609188056fb99f8ee243c60f9cf46
|
|
| MD5 |
6da42ac6dd2ac9d08a8bdb24d1fead60
|
|
| BLAKE2b-256 |
d1536a6e62e02ae5c126ef19a11ce784c8de8bb64ef83bc5edbc82e48558e88b
|