为从Plexi开发机器人API获取数据而构建的包!
PlexiFetch的Python项目详细描述
PlexiFetch
PopiFiTh是Python模块,用于为Sopi开发BOT API提供的数据提供更方便的访问!它有一些有用的功能,你可以使用。
机器人对象
函数
Method | Description | Returns |
---|---|---|
get_bot() | Gets all the bot's data | Dictionary |
get_prefix() | Gets a bot's prefix | String |
get_owner() | Gets a bot's owner | Dictionary |
get_status() | Gets a bot's approval status | String |
get_ids() | Gets a bot's and it's owner's ID | Dictionary |
get_display_names() | Gets the display names of the bot and owner | Dictionary |
示例
data = PlexiFetch.Bot(bot_id)
bot_data = data.get_bot()["Bot"]
bot_owner = data.get_owner()["Owner"]
bot_prefix = data.get_prefix()
bot_status = data.get_status()
开发对象
函数
Method | Description | Returns |
---|---|---|
get_bots() | Gets all a user's bots | Dictionary of Lists of Dictionaries |
bot_count() | Returns a user's bot count | Integer |
get_prefixs() | Gets the prefix of all a user's bots | List of Dictionaries |
get_ids() | Returns the ID of all a user's bots | List of Dictionaries |
示例
data = PlexiFetch.Dev(owner_id)
owners_bots = data.get_bots()
bot_count = data.bot_count()
bots_prefixs = data.get_prefixs()
bots_ids = data.get_ids()