semvec/pypi-packages huggingface dataset:
dbdk 1.2
Discord Bot Dev Kit is a set of funtions and classes to simplify the creation of discord bots
License: MIT

# NoVa - Discord Bot Dev Kit 

#### Is a set of funtions and classes to simplify the creation of discord bots

## Installing DBDK

```bash
pip install dbdk
```
-  You can install **DBDK** manually using [PyPI](https://pypi.org/project/dbdk/)

## Importing DBDK

```py
from dbdk import * 
```

## Creating A `Root`

```py
@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.
```py
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
        ]
    )
)
```
- **add_items** method update the root, so changes will be displayed when called

- Check [Pycord API reference: discord.ui.View](https://docs.pycord.dev/en/stable/api.html?highlight=view#discord.ui.View) for more details.


#### Adding a `Button` to the `view`

```py
# 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
```
- Check [Pycord API reference: discord.Button](https://docs.pycord.dev/en/stable/api.html?highlight=view#discord.ui.Button) for more details.

# Embeds

```py
await root.embeds.add_items(
    Embed(
        title = "My Embed",
        description = "My embed description :D",
        color = discord.Color.green()
    )
)
```
- Check [Pycord API reference: discord.Embed](https://docs.pycord.dev/en/stable/api.html?highlight=view#discord.Embed) for more details.
generate-random-values-in-range 0.10
Generate numbers in a certain range / Get True/False  according to a certain percentage
License: MIT
Keywords: random,numbers,bot


# Generate numbers in a certain range / Get True/False  according to a certain percentage


```python

$pip install generate-random-values-in-range
from generate_random_values_in_range import randomize_number,get_true_false_percent


for _ in range(200):
    randval = randomize_number(
        value=620,
        percent=20,
        percentage_substract_vs_add=70,
        minimum_to_allow=580,
        maximum_to_allow=700,
    )
    if _ % 20 == 0:
        print("")
    print(randval, end=" ")

694 666 643 580 614 619 700 700 580 653 700 580 583 603 646 700 580 609 580 580 
580 580 580 700 580 700 697 580 700 614 580 649 580 610 600 582 580 580 587 580 
605 580 580 595 602 620 584 592 700 700 698 580 580 609 580 622 644 580 580 580 
590 580 652 591 666 607 580 610 580 580 580 594 615 580 594 580 612 679 607 580 
639 700 621 665 587 622 585 580 599 580 580 600 580 580 700 700 580 580 599 580 
610 580 596 580 696 580 661 589 589 618 612 580 580 580 635 634 580 580 606 580 
581 580 612 580 580 580 602 580 580 700 580 580 580 580 700 580 580 580 691 609 
580 580 648 580 580 580 605 580 580 580 700 699 615 580 643 700 580 595 700 580 
697 580 580 630 580 580 585 582 580 593 619 580 596 688 580 581 700 580 580 580 
627 580 580 580 584 598 580 610 580 583 590 700 580 675 580 684 580 590 580 700 


for _ in range(100):
    randval = get_true_false_percent(percent_true=80)
    if _ % 20 == 0:
        print("")
    if randval is True:
        print(randval, end="  ")
    else:
        print(randval, end=" ")

True  False True  True  True  False True  True  True  True  True  True  True  True  True  True  True  True  True  True  
True  True  False True  True  False True  True  True  True  True  True  True  True  True  True  True  True  True  True  
True  True  True  True  True  False True  True  False True  True  True  True  True  True  True  True  False True  True  
False True  True  True  True  True  True  False False True  True  True  True  True  True  True  True  True  True  False 
True  True  False True  True  True  True  True  True  True  True  True  True  False True  True  True  False True  True  		

```
bracord 0.3.2
A Disnake framework written in Python that speeds the development of Discord bots.
License: MIT
Requires Python: >=3.10,<4.0
Keywords: discord,disnake,framework

# Bracord
A [Disnake](https://github.com/DisnakeDev/Disnake) framework written in Python that speeds the development of Discord bots.

Bracord is a combination of a command line tool and ready-to-go cogs that might come useful when developing quick Discord bots.

**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)

## Installation

You can install Bracord using `pip`.

```bash
$ pip3 install bracord
```

## Usage

### Project Initialization
First, you will need to initialize a Bracord project. You can do so with the following command:

```bash
$ bracord init
```

This will start asking for information related to your bot and then create all necessary files in the current directory.

### Cog Creation
To create and register a cog, you can use the `cog` command:

```bash
$ bracord cog
```

This will ask you for the cog's name and will create it and load it whenever when the bot is started.