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
Release files for danbot-hosting-py 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| danbot-hosting-py-1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| danbot_hosting_py-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:11.6 kB
Release files / danbot-hosting-py-1.0.tar.gz
| Download URL | danbot-hosting-py-1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
591ab0eb1956b680e32a54500d096c2accf146139e548a842561a336fc4a2509
|
|
BLAKE2b-256 checksum How to use checksums |
548a782797c5352afe376238c69bd8848784f30dc03bc22b220f0b63f33e59a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / danbot_hosting_py-1.0-py3-none-any.whl
| Download URL | danbot_hosting_py-1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae773d8f090418a5fe29272feacd39aa822da612181459f9b56fcddb2dc5837f
|
|
BLAKE2b-256 checksum How to use checksums |
28d41de167f4af5701facf415b61ff3a71e18e40724f2925bdfc28082da9e957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|