dbh-bots-wrapper - DanBot Hosting Bots API Wrapper
Overview
The dbh-bots-wrapper is a Python module designed to simplify interactions with the DanBot Hosting API for adding Discord bots. It provides a bot class with methods for adding bots, retrieving bot information, and obtaining information of all bots.
Installation
To use dbh-bots-wrapper, you must install it first. You can do this using the following command:
pip install dbh-bots-wrapper
Usage
Importing the Module
from dbh-bots-wrapper import bot
Initializing the Bot
my_bot = bot(
discord_id="YOUR_DISCORD_BOT_ID",
owner_id="YOUR_DISCORD_USER_ID",
api_key="YOUR_DBH_API_KEY",
name="BotName",
avatar="AvatarURL",
users=1000,
guilds=10,
shards=1
)
API Information
To retrieve information about the bot:
info = my_bot.info()
print(info)
Bot Status
To retrieve the status of the API from the DanBot Hosting API:
status = my_bot.status()
print(status)
Adding a Bot
To add the bot to DanBot Hosting:
add_result = my_bot.add_bot()
print(add_result)
Retrieving a Bot
To retrieve information about a specific bot:
bot_info = my_bot.get_bot()
print(bot_info)
Retrieving Bot List
To retrieve a information of all bots:
bots_list = my_bot.get_bots()
print(bots_list)
Example
from dbhwrapper import bot
# Initialize the bot
my_bot = bot(
discord_id="123456789012345678",
owner_id="987654321098765432",
api_key="YOUR_DBH_API_KEY",
name="MyAwesomeBot",
avatar="https://example.com/avatar.png",
users=1000,
guilds=10,
shards=1
)
# Retrieve bot information
info = my_bot.info()
print("Bot Information:", info)
# Retrieve bot status
status = my_bot.status()
print("Bot Status:", status)
# Add the bot to DanBot Hosting
add_result = my_bot.add_bot()
print("Add Bot Result:", add_result)
# Retrieve information about the added bot
bot_info = my_bot.get_bot()
print("Bot Info:", bot_info)
# Retrieve a list of bots associated with the user
bots_list = my_bot.get_bots()
print("User's Bots:", bots_list)
Replace the placeholder values with your actual Discord bot and user information.
DanBot
Made with ❤️ by DanBot Hosting.
Metadata
Release files for dbh-bots-wrapper 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dbh_bots_wrapper-1.0.2.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbh_bots_wrapper-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / dbh_bots_wrapper-1.0.2.tar.gz
| Download URL | dbh_bots_wrapper-1.0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49586f7978caaf450c8dfd17acadf17c4306b7ebe7a056a7ad1614e276f90c46
|
|
BLAKE2b-256 checksum How to use checksums |
f0f89923253cdae45dac23b271d89fff838e5029839cac4d2844e780ae112eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / dbh_bots_wrapper-1.0.2-py3-none-any.whl
| Download URL | dbh_bots_wrapper-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63e08c8a6e03adfc8d33e5feb576c146e47b7c76c3e50af524c716ca35f9d86f
|
|
BLAKE2b-256 checksum How to use checksums |
397775b1d85221c7dc613697472f81bdc2df7b501ebb8c86df80f8e473740b82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|