Skip to main content

NoVa - Discord Bot Dev Kit

Is a set of funtions and classes to simplify the creation of discord bots

Installing DBDK

pip install dbdk
  • You can install DBDK manually using PyPI

Importing DBDK

from dbdk import * 

Creating A Root

@bot.command(name="sample")
async def sample_command(ctx: commands.context.Context):

    root: Root = await create_root(ctx)
  • Roots are the start and managers of everything in DBDK. In most cases you will only need 1 root per command.

View Introduction

  • As shown in the example above, we assuming this is inside a command function definition.
root: Root = await create_root(ctx)

# by default `root` has a `view` property
root.view

# You can add items to the view using `add_items` method
await root.view.add_items(
    Button(on_click_callback, "This is the label"),

    SelectMenu(
        on_select_callback, options = [
            SelectOption
        ]
    )
)

Adding a Button to the view

# Create a on click callback function; this function is called when the button is clicked
async def on_click(clicked_button: Button, interaction: discord.Interaction):

    # respond the interacion
    await interaction.response.send_message("You Clicked the button!")

await root.view.add_items(
    Button(
        on_click,
        label = "Click Me!",
        emoji = '🙂'
    )
)

    # That's all, you'll see changes reflected in the root message

Embeds

await root.embeds.add_items(
    Embed(
        title = "My Embed",
        description = "My embed description :D",
        color = discord.Color.green()
    )
)

Metadata

Release files for dbdk 1.2

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

Source distribution (sdist)

Source distribution for dbdk 1.2
File Size Uploaded Provenance Actions
dbdk-1.2.tar.gz 11.7 kB Without provenance Details for dbdk-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dbdk 1.2
File Interpreter ABI Platform Actions
dbdk-1.2-py3-none-any.whl Python 3 none any Details for dbdk-1.2-py3-none-any.whl

Total release size: 26.2 kB

Release files / dbdk-1.2.tar.gz

Download URL dbdk-1.2.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
56f019eae24dee006a142b2401595e14c042bab3fd8bea61b544355c1735b22e
BLAKE2b-256 checksum
How to use checksums
3e99787681cb626da1481336bdab7373c8ae3fe3e868fa772e3ce3a8b2602907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / dbdk-1.2-py3-none-any.whl

Download URL dbdk-1.2-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
331da4b1b24d1446c7e395921c964d08bce18ace52322aafa3857bccf4240e08
BLAKE2b-256 checksum
How to use checksums
982620ae7a9a552360991195b826ce1af131f0faf8ae2d41b9b062009fe32a68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Security for dbdk 1.2

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