Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Repository files navigation

⚠️ Project No Longer Maintained

Important: This project is no longer maintained. Please be aware that there will be no further updates or support.

danbot-hosting - DanBot Hosting Bots API Wrapper

Overview

The danbot-hosting 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 danbot-hosting, you must install it first. You can do this using the following command:

pip install danbot-hosting

Usage

Importing the Module

fromdanbot-hostingimportbot

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

fromdanbot-hostingimportbot# Initialize the botmy_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 informationinfo=my_bot.info()
print("Bot Information:", info)
# Retrieve bot statusstatus=my_bot.status()
print("Bot Status:", status)
# Add the bot to DanBot Hostingadd_result=my_bot.add_bot()
print("Add Bot Result:", add_result)
# Retrieve information about the added botbot_info=my_bot.get_bot()
print("Bot Info:", bot_info)
# Retrieve a list of bots associated with the userbots_list=my_bot.get_bots()
print("User's Bots:", bots_list)

Replace the placeholder values with your actual Discord bot and user information.

DanBot Hosting:

Note

Found a bug? Open a GitHub Issue. Found a vulnerability? Open a ticket in our Discord Server.

Made with ❤️ by DanBot Hosting.

About

This project is no longer maintained nor should be used under any condition. It will remain publicly available but will not receive any updates.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages