# noWindowMsgRobot **Repository Path**: daijiahui/noWindowMsgRobot ## Basic Information - **Project Name**: noWindowMsgRobot - **Description**: 读取sqlserver获取参数通过webhook,自动让飞书机器人发消息。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-08 - **Last Updated**: 2024-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # noWindowMsgRobot #### 介绍 读取sqlserver获取参数通过webhook,自动让飞书机器人发消息。 可以讲需要推送的消息按照字段要求写入sqlserver中,定时轮巡数据表,获取消息数据,并进行推送。 #### 使用说明 导入数据表 ``` CREATE TABLE [dbo].[msg_detail]( [id] [nvarchar](255) NULL, [webhook_url] [nvarchar](255) NULL, [title] [nvarchar](255) NULL, [at] [nvarchar](255) NULL, [text] [nvarchar](255) NULL, [title_color] [nvarchar](255) NULL, [result] [nvarchar](255) NULL, [add_time] [datetime] NULL, [result_time] [datetime] NULL ) ON [PRIMARY] GO ``` | id | webhook_url | title | at | text | title_color | result | add_time | result_time | |------|-------------|-------|--------|-----|--------------------------|--------|----------|-------------| | 唯一id | webhook地址 | 标题 | @所有人(all) | 内容 | 标题颜色(red/green/blue/...) | 返回结果 | 消息增加时间 |推送消息时间 | set.ini 配置说明 ``` [Database] server=127.0.0.1 --数据库地址 user=sa --登陆用户 password=jyb --登陆用户密码 database=msg_robot --数据库名 charset=utf8 tds_version=7.0 [SelectTime] secs=5 --定时轮巡时长(单位:秒) ``` 执行mian.py