# ProdiGen

## **Discord Bot Stock Generator & Manager**

Welcome to our dedicated guide for **ProdiGen**, our powerful Discord Bot designed to manage and generate stock efficiently. This guide will walk you through how to use each command, the advantages of using ProdiGen, and detailed explanations for each function.

***

## **1. Introduction**

**ProdiGen** is a comprehensive solution for managing and generating stock within your Discord community. It offers a wide range of commands for both users and admins to interact with the system seamlessly. Whether you need to check your balance, redeem keys, or manage stock as an admin, **ProdiGen** provides an intuitive and efficient way to handle all your needs.

***

## **2. User Commands**

**`/gen_help`**

Displays help information for all commands available to the user.\
This command provides an overview of all available commands and their usage. It is the starting point for new users to get acquainted with the bot's capabilities.

**`/stock`**

Shows the current stock of all products, categorized for easy navigation.\
Use this command to view the available stock of products. The output is categorized, making it easy to find what you are looking for. You can specify categories if you want to filter your search./stock

**`/balance`**

View your current balance.\
This command displays your current balance, allowing you to keep track of your available funds.

**`/redeem`**

Redeem a key to add funds to your balance.\
Use this command to redeem a key that will add funds to your balance. Simply input the key provided, and your balance will be updated accordingly.

**Example:**

```
/redeem ABCD-1234-EFGH-5678
```

**`/gen`**

Generate a product text and send it to you in a direct message.\
This command generates a specified product (identified by its name) and sends the generated product details directly to your DM. It is a convenient way to privately receive product information.

**Parameters:**

* **product**: The name of the product to generate.
* **quantity**: The number of products to generate.

**Example:**

```
/gen VPN_PRO 1
```

***

## **3. Admin Commands**

**`/setup <modif_type> <new_value> <free_product_limit> <time_period> <channel_type> <restock_alerts> <footer_name> <theme_color>`**

Set up products, categories, roles, settings, etc.\
This command allows you to configure various settings for the bot, including adding products, setting prices, assigning categories, and managing permissions for roles.

**Example:**

```
/setup modif_type:product name:VPN_PRO price:19.99
```

**`/gen_perms`**

Displays all permissions for roles.\
This command shows the current permissions assigned to roles in your server, allowing you to control who has access to different features of the bot.

**`/gen_to`**

Generate product keys and send them to a specified user via DM.\
This command allows admins to generate product keys for a specified product and send them directly to the user in a private message.

**Example:**

```
/gen_to VPN_PRO 1 @User
```

**`/add_balance`**

Add a specified amount to a user's balance.\
Admins can use this command to quickly adjust a user's balance, useful for promotions or resolving balance issues.

**Example:**

```
/add_balance @User 100
```

**`/check_balance`**

View the balance of a specified user.\
This command allows admins to check the balance of any user, providing transparency for the management of user funds.

**Example:**

```
/check_balance @User
```

**`/reset_balance`**

Reset the balance of a specified user to zero.\
This command is useful for cases of misuse or fraud, resetting a user's balance back to zero.

**Example:**

```
/reset_balance @User
```

**`/create_keys`**

Create keys to add funds to user balances.\
This command generates unique keys that users can redeem to add funds to their balance.

**Example:**

```
/create_keys 5 10 standard
```

**`/add_serials`**

Add stock via serials in a modal window.\
Admins can input serials for a product, ensuring that inventory is updated accurately and in real-time.

**Example:**

```
/add_serials VPN_PRO
```

**`/add_stock_file`**

Add stock by uploading a file.\
This command allows for bulk stock uploads by attaching a file, making it easier to manage large inventories.

**Example:**

```
/add_stock_file VPN_PRO stockfile.txt
```

**`/add_product <product_type>`**

Add a new product to the system, specifying its category, product type, and price.

**Example:**

```
/add_product name:VPN_PRO category:VPNs product_type:Tool price:19.99
```

**`/remove`**

Remove stock for a specific product or clear stock entirely.\
This command is useful for discontinuing products or clearing old inventory.

**Example:**

```
/remove action:clear product:VPN_PRO
```

**`/extract`**

Extract stock for a particular product.\
This command provides an overview of all stock available for a product.

**Example:**

```
/extract VPN_PRO
```

**`/recent_transactions`**

Show the 10 most recent stock and key generation transactions.\
Admins can view recent activity, ensuring transparency in stock management.

**Example:**

```
/recent_transactions
```

**`/user_transactions`**

Show all transactions for a specified user.\
This command gives a detailed history of a user’s transactions, providing insight into their activity.

**Example:**

```
/user_transactions @User
```

**`/reset_cooldown`**

Reset the 24-hour cooldown for a user.\
This command allows admins to bypass the cooldown period, granting users the ability to perform actions immediately.

**Example:**

```
/reset_cooldown @User
```

**`/show_keys`**

Show all keys for a selected product.\
This command lists all available keys for a product, helping admins manage stock and track key distribution.

**Example:**

```
/show_keys VPN_PRO
```

***

## **4. Advantages of Using ProdiGen**

* **Efficiency**: Streamlines stock management and generation processes.
* **Security**: Ensures private and secure handling of product keys and balances.
* **User-Friendly**: Intuitive commands for both users and admins.
* **Transparency**: Provides detailed transaction histories and balance checks.
* **Flexibility**: Supports both individual and bulk operations.
* **Customization**: Customize the bot’s behavior and appearance to match your server’s needs.

***

## **5. FAQ**

**Q: How do I get started with ProdiGen?**

A: Start by using the `/gen_help` command to familiarize yourself with available commands.

**Q: Can I check my transaction history?**

A: Yes, admins can check user transaction histories using the `/user_transactions` command.

**Q: How do I add stock?**

A: Admins can add stock using `/add_serials` for individual serials or `/add_stock_file` for bulk uploads.

***

## **6. Conclusion**

ProdiGen is designed to simplify and enhance stock management within your community. With a range of powerful commands, both users and admins can interact with the system efficiently. We hope this Guide helps you navigate and utilize the bot to its full potential. For any further questions or support, feel free to reach out to our support team.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://av0.gitbook.io/av/bots/prodigen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
