plugin_sticker:
add sticker collect to channel feature
allow detected `addsticker` link and show download sticker set button
database:
remove `IsInitialized` and `InitializedErr` in `DatabaseBackend` struct
add `context.Context` params in `DatabaseBackend.Initializer`
yaml_db:
using `yaml.LoadYAML()` and `yaml.SaveYAML()` to save database file
using `zerolog` logger replace `log`
fix database file protection logic
remove `addToYamlDB()` func
update `Database.UpdateTimestamp` when change some flag
handlers:
fix `CustomSymbolCommand` trigger: use `strings.HasPrefix()` to replace `utils.CommandMaybeWithSuffixUsername()`, custom symbol command will not include robot username suffix
consts:
rename `YAMLDataBasePath` to `YAMLDataBaseDir`
mess:
remove `PrintLogAndSave()` func
handlers.go:
fix wrong var
utils/yaml/yaml.go
remove fmt package
plugins/teamspeak:
allow check online client failed 5 times before reinit
all and other:
use err template
plugin use yaml.Load() and yaml.Save() manage databases
use mult error to recored all error
use mult writer and filter to save different level log to log file
add makefile to build and inject version info
use `github.com/pkg/errors` and zerolog to print stack and save it
add `SaveDatabase` and `ReadDatabase` database operate function
import `github.com/rs/zerolog` use as logger
move most config into yaml config file
use `filepath.Join()` to combine file path
separate some function from `utils`
move signal channel to `signals` package
make exit code in `SignalsHandler()`
change debug script output directory to `${workspaceFolder}/__debug_bin`