behappy

package module
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

README

behappy

Build Quality Gate Status

Don't worry, be happy. 风力掀天浪打头,只须一笑不须愁。

本项目的目标将用户的比赛信息推送到 QQ 群中,供群友点评。

效果预览

2

使用

$ ./behappy --help
风力掀天浪打头,只须一笑不须愁

Usage:
  behappy [command]

Available Commands:
  help        Help about any command
  run         运行 behappy 主程序
  version     查看 behappy 版本号

Flags:
      --debug   Debug Mode
  -h, --help    help for behappy

Use "behappy [command] --help" for more information about a command.

第一次启动会自动初始化 schema, tables

配置文件 ~/.behappy.yaml:

mirai:
  botqq: 10001
steamapi:
  key: AXAFJQPDJV2312
datasource:
  url: USERNAME:PASSWORD@tcp(example-mysql.com:3306)/behappy?charset=utf8mb4&parseTime=True&loc=Local

开发

项目原理?

基于 opendota 扫描战绩,基于 mirai 提供 QQ 交互能力

如何编译?

请注意,编译具有以下依赖项:

  1. Golang
  2. Make

简单的执行 make 命令即可,编译的文件在 bin 目录下。 如果只需要编译到 windows 平台,可以执行命令: make windows-amd64。更详细的用法,你可以直接查看根目录中 Makefile 文件。

注意事项

如果想要使用“最佳劳模”功能,需要在系统中安装 simkai.ttf 字体。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

func GetWinOrLoseTimesInRow added in v1.2.0

func GetWinOrLoseTimesInRow(playerID string) (winTimes, loseTimes int)

func InitHeros

func InitHeros()

func Run

func Run()

func SubscribeFunc

func SubscribeFunc()

func WeeklyBest added in v1.5.0

func WeeklyBest()

Types

This section is empty.

Jump to

Keyboard shortcuts

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