internal_plugin:
add a `delete_this_message` callback query handler to delete any message trigger it
handler_callback_query:
fix `CallbackDatePrefix` field to `CallbackDataPrefix`
16 lines
620 B
Makefile
16 lines
620 B
Makefile
COMMIT := $(shell git rev-parse HEAD)
|
|
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
|
VERSION := $(shell git describe --tags --always)
|
|
CHANGES := $(shell git status -s | wc -l)
|
|
TIME := $(shell date +%s)
|
|
HOSTNAME := $(shell hostname)
|
|
LDFLAGS := -X 'trbot/utils/consts.Commit=$(COMMIT)' \
|
|
-X 'trbot/utils/consts.Branch=$(BRANCH)' \
|
|
-X 'trbot/utils/consts.Version=$(VERSION)' \
|
|
-X 'trbot/utils/consts.Changes=$(CHANGES)' \
|
|
-X 'trbot/utils/consts.BuildAt=$(TIME)' \
|
|
-X 'trbot/utils/consts.BuildOn=$(HOSTNAME)'
|
|
|
|
build:
|
|
go build -ldflags "$(LDFLAGS)"
|