# Golang 监听币安Websocket实现机器人自动推送消息 **Published by:** [Robin](https://paragraph.com/@robin-8/) **Published on:** 2023-02-22 **URL:** https://paragraph.com/@robin-8/golang-websocket ## Content 准备工作注册一个企业微信、创建群聊、群设置里创建一个Bot机器人、记录下机器人的调用Webhook地址。准备一个Golnag的开发环境https://mirror.xyz/0xa572762E9250899A3e6d2D99497e0D1dc39D2Ee1/ak3i-Tx-1IgtvXhHx2xmTFE0ORmHctDH_i32K4E6E9E代码地址https://github.com/robinwangrubin/BinanceAlart功能列表发邮件通知发企业微信消息通知数据存储Influxdb中效果截图邮件通知企业微信机器人通知Grafana展示Influxdb的数据你需要做什么1.下载代码git clone git@github.com:robinwangrubin/BinanceAlart.git 2.修改配置文件[Bot] key = "YourWeChat Key" [Email] mailServer = "smtp.163.com" mailPort = 465 maillUser = "YourEmailAddress@xxx.com" mailPass = "YourPassWord" toUserList = "SomeoneEmail@xxx.com","SomeoneEmail@xxx.com" 3.如果需要落盘写入Influxdb;则需要安装Influxdb1.8版本+Grafana展示;这里不在说明。 ## Publication Information - [Robin](https://paragraph.com/@robin-8/): Publication homepage - [All Posts](https://paragraph.com/@robin-8/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@robin-8): Subscribe to updates