semvec/pypi-packages huggingface dataset:
uniquebots 0.1.3
A Simple Python API wrapper for Uniquebots.
License: MIT
Requires Python: >=3.6

# Uniquebots PY SDK

### 설치

* 사용 불가능

```shell
# Linux/macOS
python3 -m pip install -U uniquebots

# Windows
py -3 -m pip install -U uniquebots
```



## 길드 수 업데이트

**Discord Client**
```py
import discord
from discord.ext import commands
import uniquebots

bot = discord.Client()

uniquebots.Client(bot, token='Uniquebots Token')

@bot.event
async def on_ready():
    print(f"{bot.user.name} 준비 완료.")

bot.run('Discord Token')
```
**Http**
```py
import uniquebots
import asyncio
loop = asyncio.get_event_loop()

bot = uniquebots.httpclient('Uniquebots Token')

data = loop.run_until_complete(bot.getbot('785407404031868949'))

print(data)
```

## 데코레이터

**UniqueClient 준비 완료**
```py
from uniquebots import utils
@utils.event()
async def on_ready():
    print("Uniquebots ready")
```

**UniqueClient 오류**
```py
from uniquebots import utils
@utils.event()
async def on_error(type):
    print(f"Error {str(type)}")
```

**UniqueClient Requests log**
```py
from uniquebots import utils
@utils.event()
async def on_requests(res):
    print(f"Requests response: {res}")
```

**UniqueClient Same Guild Requests**
```py
from uniquebots import utils
@utils.event()
async def on_same_guild_count(guild_count):
    print(f"Same guild_count requests , guild_count: {guild_count}")
```