Commit 763bf9f6 authored by 王志伟's avatar 王志伟

增加机器人提醒任务

parent b1ae44f0
......@@ -12,14 +12,29 @@ def dingding_robot(data):
if __name__ == "__main__":
import linecache
str = ""
for i in range(36,64):
s=linecache.getline('test.txt', i).strip("\n").split(",")
if s[0] != "":
str += s[0]+"\n"
str +="【很重要】如下有变更,请提醒相关的人:1.推荐模型变更优化,影响CTR或者CVR(王志伟);2.任何涉及到数据库schame变更(王志伟)"
print(str)
# 请求参数 可以写入配置文件中
data = {
"msgtype": "text",
"text": {
"content": "群机器人是钉钉群的高级扩展功能。群机器人可以将第三方服务的信息聚合到群聊中,实现自动化的信息同步。",
"content": str,
"title": "自定义机器人"
# "picUrl": "",
# "messageUrl": "https://www.baidu.com/"
},
"at": {
"atMobiles":["17310453926"]
}
}
res = dingding_robot(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment