Yunite API 的异步包装器
之后,使用以下代码创建客户端:
import YuniteAPI
import asyncio
async def main ():
client = YuniteAPI . Client ()
await client . add_token ( guild_id = 123456789 , api_key = 'Your api-key' ) # Example token
if __name__ == '__main__' :
loop = asyncio . get_event_loop ()
loop . run_until_complete ( main ())
更多文档请查看文档