关注数据监听。
This commit is contained in:
22
main.py
22
main.py
@@ -109,17 +109,17 @@ def main(chat_type: int):
|
||||
print(f"已将新的APP_ID: {app_id} 写入配置文件")
|
||||
# 同时更新当前配置对象中的APP_ID
|
||||
config.APP_ID = app_id
|
||||
#
|
||||
# # 创建机器人实例
|
||||
# robot = Robot(config, app_id, client, chat_type)
|
||||
# robot.LOG.info(f"WeChatRobot gewechat 成功启动···")
|
||||
#
|
||||
# # # 注册Robot实例到callback模块
|
||||
# # from gewechat.api.callback import register_robot
|
||||
# # register_robot(app_id, robot)
|
||||
#
|
||||
# # 机器人启动发送测试消息
|
||||
# client.post_text(app_id, send_msg_wxid, "gewechat client 启动成功!")
|
||||
|
||||
# 创建机器人实例
|
||||
robot = Robot(config, app_id, client, chat_type)
|
||||
robot.LOG.info(f"WeChatRobot gewechat 成功启动···")
|
||||
|
||||
# # 注册Robot实例到callback模块
|
||||
from gewechat.api.callback import register_robot
|
||||
register_robot(app_id, robot)
|
||||
|
||||
# 机器人启动发送测试消息
|
||||
client.post_text(app_id, send_msg_wxid, "gewechat client 启动成功!")
|
||||
#
|
||||
# # 每天 8:30 发送新闻
|
||||
# robot.onEveryTime("08:30", robot.news_baidu_report_auto)
|
||||
|
||||
Reference in New Issue
Block a user