Skip to main content

interactions-dbl

PyPI PyPI - Status PyPI - License

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)

Metadata

Release files for interactions-dbl 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for interactions-dbl 1.0.0
File Size Uploaded Provenance
interactions-dbl-1.0.0.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for interactions-dbl 1.0.0
File Interpreter ABI Platform
interactions_dbl-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / interactions-dbl-1.0.0.tar.gz

Download URL interactions-dbl-1.0.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
744780a24770f9c3c2ffc1235ffdaa109785e4e61c79408be12148bb98b0fc99
BLAKE2b-256 checksum
How to use checksums
22ac4252c3fae4357ddc28ca09dba61629376b122c3d6835f3b0641e866d4272
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / interactions_dbl-1.0.0-py3-none-any.whl

Download URL interactions_dbl-1.0.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e6b48a5b469c4dec8fedae8f8b8678802c7110e90761365f409adf882197e5a
BLAKE2b-256 checksum
How to use checksums
6d20cff96b856db4d0a1e1456228a179a10fd5df2a0bcf3997b9b59a4b8360af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for interactions-dbl 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page