A Python Wrapper for the DanBotHosting API
Project description
danbot-hosting-py
A Python API Wrapper for the DanBot Hosting API
Installation
For Windows:
pip install danbot-hosting-py
For Linux/MacOS
pip3 install danbot-hosting-py
Quick Example
from discord.ext import commands
from danbot_api import DanBotClient
bot = commands.Bot(command_prefix='>', description="This is a Helper Bot")
@bot.event
async def on_ready():
DanBotClient(bot, key="your_dbh_key", autopost=True)
print('Bot is Online')
@bot.event
async def on_dbh_post(data):
print("Posted Bot Data to DBH. Data Posted:")
print(data)
@bot.command()
async def ping(ctx):
await ctx.send('pong!')
bot.run("your bot's token here")
FAQ
How do you get an API key?
Go to the discord server and use the DBH!ApiKey
command in a respective text channel there!
I'm having trouble with the module
You may post at the issues section in Github or message me on Discord! (Makiyu^#4707)
Links
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
danbot-hosting-py-1.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for danbot_hosting_py-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae773d8f090418a5fe29272feacd39aa822da612181459f9b56fcddb2dc5837f |
|
MD5 | 8676be5a95517f86829d21aff958f8bd |
|
BLAKE2b-256 | 28d41de167f4af5701facf415b61ff3a71e18e40724f2925bdfc28082da9e957 |