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 ())
更多文檔請查看文檔