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.2.tar.gz
(1.6 kB
view details)
Built Distribution
File details
Details for the file MDBL API-1.0.2.tar.gz
.
File metadata
- Download URL: MDBL API-1.0.2.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 | 6ccc154238c898c7c552448e0dc3e6fda7a110c9cf16d8932b1c1d462bd0d9fa |
|
MD5 | 8b2b2533f95602031d60430520a69dd9 |
|
BLAKE2b-256 | 2a6862669d81f8f9ff09372b7c8c6912e964b2e594ee7d0dff16be1cb5df6073 |
File details
Details for the file MDBL_API-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: MDBL_API-1.0.2-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 | 1090029d6280da22dec2176abc30a98100215e141f9e2c2df17906bbc9eb05d4 |
|
MD5 | 72d5bce17b7ce386958da0b636d1ee06 |
|
BLAKE2b-256 | 9a86e63ffda3a332e9388ba4be53eed99d3b6d5370d1d3df60af8d86b7326fa6 |