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.tar.gz
(1.6 kB
view details)
File details
Details for the file MDBL API-1.0.tar.gz
.
File metadata
- Download URL: MDBL API-1.0.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 | 258cbb2fe723a26b1af7e9942f4bba238235281c9dbafc2a0c7c4de141a996f5 |
|
MD5 | 5e080f2006029719966b3dd0d25e622d |
|
BLAKE2b-256 | 872809607b1ebb7fd2cdf2b06ed3322711902982346ad1787c625b7b916131bb |