fkbro

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2020 License: BSD-2-Clause Imports: 21 Imported by: 0

README

fkbro

Telegram Bot @btcinfo_kirito_bot 暴躁老哥 BTC信息、行情查询机器人

预览

  • Telegram中搜索 @btcinfo_kirito_bot 即可添加机器人
  • /help获取操作方法
  • 可以把机器人添加到群组
  • 链上资金监控请关注频道 @fkbrolive

图片可能和最新版本不符合:







编译

  • 进入到项目的根目录
  • 执行 go build -o fkbro.exe github.com/zshorz/fkbro

运行

  • telegram中搜索@BotFather按步骤申请机器人,得到token
  • 填写配置文件config.json
    • bot_token - 机器人token
    • proxy - 国内无法连接telegram服务器,可配置代理
      • socks5://127.0.0.1:1080
      • http://127.0.0.1:1081
    • static_path - /static文件夹的路径,要确保程序运行时可以找到
    • bot_owner - 机器人拥有者,填telegram用户名
    • whale_apikey - rss功能需要的apikey,WhaleAlert,留空为不启用
      • 启用后,要用setup.sql初始化mysql数据库
      • 并填写相关设置
      • rss - 服务器启动时,这些频道自动订阅
    • 其余保持默认
  • 执行 ./fkbro.exe -c config.json ,也可以不用-c参数,默认执行目录下config.json
  • release 里已经为Linux提供了编译好的二进制文件

关于

  • 版本号格式 x.y.z - y为偶数的是稳定版本
  • donate - 17MaxVm9Zm8WQfHrrgA2LVzuEDdSL6AZVN

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL