Metadata-Version: 2.2
Name: probotlib
Version: 1.6
Summary: A small library that helps verify credit transfers.
Home-page: https://github.com/Minegamer2024/probot.git
Author: Minegamer
Keywords: python,discord.py,discord,probotlib,probot discord,discord probot,bot,transfer
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8,<=3.12.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: requires-python
Dynamic: summary

# Probotlib

A small library that helps verify credit transfers.

# How to use

You must first install the discord.py library.

```sh

pip install discord.py

```

You must first install the library.

```sh

pip install probotlib

```
# Note

You should make credit command in probot in short c and the probot is in English.

# Code example

```py

import discord
from discord.ext import commands
from probotlib import Transfer

intents = discord.Intents.all()
client = commands.Bot(command_prefix="!", intents=intents)

@client.command()
async def buy(ctx):

    role = ctx.guild.get_role() 
    user = ctx.author

    #Add transfer data
    trans = Transfer(owner_id="add owner id", probot_id="add probot id", amount="add amount", server_id="add server id")

    #Get transfer embed 
    embed = trans.trans_embed(bot=client)
    await ctx.send(embed=embed)

    #Transfer process started
    role_buy = await trans.trans_amount(ctx=ctx)

    if role_buy:
        await user.add_roles(role)
    else:
        await ctx.send("time is up")

```
