LTD-ManaagerBot/python/requests/system/ktg.py

20 lines
810 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ktg.py
import sys
sys.path.append("..") # 添加父目录到模块搜索路径
import KtRequestGenerator as kg
def main():
api_paths = [
# 账号控制
"/get_robot_uin_range", # 获取机器人可操作的账号范围(多账号托管时使用)
"/bot_exit", # 强制退出当前机器人账号(主动下线)
# 协议级操作
"/send_packet", # 发送原始协议数据包需熟悉QQ协议格式
"/nc_get_packet_status", # 查询自定义数据包的状态(如发送结果、回包状态)
# 系统信息
"/get_version_info" # 获取机器人框架/客户端的版本信息
]
kg.generateRequestKt("system", "AbstractSystem", api_paths)
if __name__ == "__main__":
main()