diff --git a/.gitignore b/.gitignore index f9d4098..a73db95 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,10 @@ test.go *.out # Dependency directories (remove the comment below to include it) -*.yml +config.yml #Database -*.db \ No newline at end of file +*.db + +#Logs +/log \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..bab9ad0 --- /dev/null +++ b/.goreleaser.yml @@ -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:' \ No newline at end of file diff --git a/handle.go b/handle.go index 1a67599..6d0fcbf 100644 --- a/handle.go +++ b/handle.go @@ -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)