Skip to main content

DanBot Hosting Bots API Wrapper

Project description

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

[!NOTE] Found a bug? Open a GitHub Issue. Found a vulnerability? Open a ticket in our Discord Server (Soon enough on a support website!)

Made with ❤️ by DanBot Hosting.

Project details


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-1.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

danbot_hosting-1.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file danbot_hosting-1.0.3.tar.gz.

File metadata

  • Download URL: danbot_hosting-1.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for danbot_hosting-1.0.3.tar.gz
Algorithm Hash digest
SHA256 130d0180fbb358597531502007c5315960332e7c433ae433850be942bc9b93e2
MD5 1eaf7453ab88077f0a9e61e37777a9d2
BLAKE2b-256 c56a89d7c20e056ec97de447673d9392d969df8e72238d86dce84c5cbda81f57

See more details on using hashes here.

File details

Details for the file danbot_hosting-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: danbot_hosting-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for danbot_hosting-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75fe6937b0f72cd44eb8bcec5e4d180c1f6fe0d25f1268318a6cd4763284a716
MD5 571c9d88f9663766389d096f07a03b1c
BLAKE2b-256 a456d3cd524eb5ae408f63d28e5f4b6a0aaa6059a040b9d547cadfac7d31ad95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page