Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

danbot-hosting-py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danbot-hosting-py

A Python Wrapper for the DanBotHosting API

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

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)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc