Skip to content

Commit

Permalink
fix: program name
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Oct 10, 2024
1 parent 67ff41b commit 5ba6ec9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func registerHandlers(hg *telegohandler.HandlerGroup) {
msgGroup := hg.Group(telegohandler.AnyMessage())
msgGroup.Use(func(bot *telego.Bot, update telego.Update, next telegohandler.Handler) {
if !slice.Contain(config.Cfg.Telegram.Admins, update.Message.From.ID) {
bot.SendMessage(telegoutil.Message(update.Message.Chat.ChatID(), "抱歉, 该 Bot 为个人使用设计, 您可以部署自己的 AnySaveBot 实例: https://github.com/krau/SaveAny-Bot"))
bot.SendMessage(telegoutil.Message(update.Message.Chat.ChatID(), "抱歉, 该 Bot 为个人使用设计, 您可以部署自己的 SaveAnyBot 实例: https://github.com/krau/SaveAny-Bot"))
return
}
next(bot, update)
Expand Down
2 changes: 1 addition & 1 deletion bot/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Start(ctx context.Context, bot *telego.Bot, message telego.Message) {

func Help(ctx context.Context, bot *telego.Bot, message telego.Message) {
helpText := `
AnySave Bot - 转存你的 Telegram 文件
SaveAny Bot - 转存你的 Telegram 文件
命令:
/start - 开始使用
/help - 显示帮助
Expand Down
4 changes: 2 additions & 2 deletions config/viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ func Init() {
viper.SetDefault("temp.cache_ttl", 3600)

viper.SetDefault("log.level", "INFO")
viper.SetDefault("log.file", "logs/anysave.log")
viper.SetDefault("log.file", "logs/saveany.log")
viper.SetDefault("log.backup_count", 7)

viper.SetDefault("db.path", "data/anysave.db")
viper.SetDefault("db.path", "data/saveany.db")

viper.SetDefault("telegram.api", "https://api.telegram.org")

Expand Down

0 comments on commit 5ba6ec9

Please sign in to comment.