Skip to main content

UniqueBot python SDK

Project description

UBPY

UniqueBots 파이썬 비공식 SDK입니다.

공식 SDK- (준비중입니다.)

SaidBySolo님의 KoreanBots비공식 sdk레포의 일부를 사용해 제작되었습니다. URL

현재는 길드수업데이트 모듈만 존재합니다, 이 모듈은 자동으로 1시간마다 자동으로 요청을 보내고 따로 길드수를 비교하는 함수는 필요가 없습니다.

파이썬 3.6이상을 필요로 합니다.

pip install UBPY --upgrade

##길드 수 업데이트

Use not Cogs

import discord
from discord.ext import commands
import UBPY
bot = commands.Bot(command_prefix='!')
#or
bot = discord.Client()

UBPY.Client(bot,token='UniqueBots TOKEN',bot_id="BOT ID")

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

bot.run('Discord TOKEN')

Using Cogs

import UBPY
import discord
from discord.ext import commands

class GuildCount(commands.Cog):

    def __init__(self, bot):
        self.bot = bot
        self.token = "UniqueBots TOKEN"
        self.id = "Bot ID"
        UBPY.Client(self.bot,self.token,self.id)

def setup(bot):
    bot.add_cog(GuildCount(bot))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UBPY-2.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

UBPY-2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file UBPY-2.0.tar.gz.

File metadata

  • Download URL: UBPY-2.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6rc1

File hashes

Hashes for UBPY-2.0.tar.gz
Algorithm Hash digest
SHA256 eafee6b1eb3b73f5c8453a3ea2c775c53cda43e2692eacb3f8f0beff8b683b43
MD5 ea2e4f1df4a58c5c884a470b8e6c913d
BLAKE2b-256 52ee38deae404592f4da15da6e0fd9dbd6950b202f20efef9391dee6401f8295

See more details on using hashes here.

File details

Details for the file UBPY-2.0-py3-none-any.whl.

File metadata

  • Download URL: UBPY-2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6rc1

File hashes

Hashes for UBPY-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab447471ed9544c43e23015d8194e9047c3ef924a0282e85584339fd7ea5504f
MD5 c08ca01ac697c080bcde922b3b4cb620
BLAKE2b-256 b08abe878dc69b11c89cf32b6d9869a41c39ade60eff483d49bde8e5de96f76f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page