Skip to main content

DBL (Discord Bot Lists) extension library for discord-py-interactions

Project description

interactions-dbl

DBL (Discord Bot Lists) extension library for discord-py-interactions.

Find the supported bot listings here.

Features

  • Update server count on most of the bot listings.

Installation

pip install interactions-dbl

Examples

Using bot.py

import interactions
from interactions.ext.dbl import DBLClient

from config import BOT_TOKEN, TOPGG_TOKEN, DBL_TOKEN

if __name__ == '__main__':
    bot = interactions.Client(
        token=BOT_TOKEN,
        intents=interactions.Intents.DEFAULT
    )


    @bot.event
    async def on_ready():
        auth = {
            "top.gg": TOPGG_TOKEN,
            "discordbotlist.com": DBL_TOKEN
        }
        DBLClient(bot, auth=auth)


    bot.start()

Using cogs

import interactions
from interactions.ext.dbl import DBLClient

from config import TOPGG_TOKEN, DBL_TOKEN


class UpdateCount(interactions.Extension):
    def __init__(self, bot):
        self.bot: interactions.Extension = bot

        auth = {
            "top.gg": TOPGG_TOKEN,
            "discordbotlist.com": DBL_TOKEN
        }
        DBLClient(self.bot, auth=auth)


def setup(client):
    UpdateCount(client)

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

interactions-dbl-1.0b1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

interactions_dbl-1.0b1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file interactions-dbl-1.0b1.tar.gz.

File metadata

  • Download URL: interactions-dbl-1.0b1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for interactions-dbl-1.0b1.tar.gz
Algorithm Hash digest
SHA256 dd48a26d5b2218d9c2cf9dcd6e30ad03f164f5ceff9919cd67dae1f857482fbe
MD5 96049556cbea00920bf3b992f934e618
BLAKE2b-256 6c389ba3fc4fe1b8a347188ac04019e8e2a3bb55473adbe702662811236671b8

See more details on using hashes here.

File details

Details for the file interactions_dbl-1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for interactions_dbl-1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec360ab0977f7013386ee6b1f7975364b664961e3f448ba2f30410a7ade323db
MD5 4547ff0d11dcb44c8fdbef82b8e7f388
BLAKE2b-256 ef9dd41f8c0c41f91c986c03a942516e73e0cb90821c2554a6e68f87686f6a19

See more details on using hashes here.

Supported by

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