This commit is contained in:
iyear 2020-04-04 13:05:41 +08:00
parent 859af259c9
commit 0ed3174978
3 changed files with 41 additions and 2 deletions

7
.gitignore vendored
View File

@ -13,7 +13,10 @@ test.go
*.out
# Dependency directories (remove the comment below to include it)
*.yml
config.yml
#Database
*.db
*.db
#Logs
/log

35
.goreleaser.yml Normal file
View File

@ -0,0 +1,35 @@
project_name: E5SubBot
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
archive:
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: 32bit
amd64: 64bit
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

View File

@ -59,6 +59,7 @@ func init() {
UserCid = make(map[int64]string)
UserCSecret = make(map[int64]string)
}
func bStart(m *tb.Message) {
bot.Send(m.Sender, bStartContent)
bHelp(m)