使用python3的Toxic的bot列表的官方API包
toxicbl的Python项目详细描述
欢迎来到毒物在
这个PyPi包可以帮助您获取机器人程序、用户的信息,并发布关于用户的数据 /您的令牌在Toxic Bot List上的服务器计数
入门
您需要先导入模块
fromtoxicblimportbots# or users
一个关于抓取机器人信息的例子(用户也可以这样做)
^{pr2}$更新机器人信息的示例(不和.py已使用)
fromtoxicblimportdata@client.eventasyncdefon_ready()data.update({'token':'your_token','serversCount':str(len(client.servers)),'usersCount':str(len(client.users))})
机器人程序信息对象
返回包含以下内容的对象:
bot_tag:String# Bot's tagavatar_url:String# Bot avatarUrllibrary:String# Library of botprefix:String# Prefix of botshort_description:String# Short description of bot in TBL sitelong_description:String# Long description of bot in TBL site (contains markdown & html)owner_tag:String# Full tag of ownerauthorize_link:String# Invite link of the botserver_count:String:Numberofserversuser_count:String:Numberofusers
用户信息对象
返回包含以下内容的对象:
biography:String# User's biography if setavatar_url:String# User's avatar urlusername:String# User's usernamenum_of_bots:Integer# Number of bots created by user
- 项目
标签: