From 193034b319ed477770ed1130890cb00751f2eed1 Mon Sep 17 00:00:00 2001 From: 3377 <35794406@qq.com> Date: Wed, 18 Dec 2024 00:37:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9E=84=E5=BB=BA=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.pdf | Bin 395552 -> 395552 bytes internal/bot/bot.go | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.pdf b/README.pdf index 4f70b1bcf5a1cbb53dc09c12c99997ace22c5f41..0a8566725cc22c12a731c6608c4b5b094134eb46 100644 GIT binary patch delta 43 vcmZ25Nn*hyi3y1;#%3nQ6I12EbYn+r2V-joQ)>rvYX?hf2kX`jwiz4%Kk^QL delta 43 vcmZ25Nn*hyi3y1;My4hP6I12EbYn+r2V-joQ)>rvYX?hf2kX`jwiz4%KH3g- diff --git a/internal/bot/bot.go b/internal/bot/bot.go index 2a5f2ec..fb1516a 100644 --- a/internal/bot/bot.go +++ b/internal/bot/bot.go @@ -105,7 +105,7 @@ func (b *Bot) Start() { case "view": b.handleView(chatID, userID) case "edit": - b.handleEdit(chatID, userID) + b.handleEditCommand(chatID, userID) default: b.sendMessage(chatID, "未知命令,请使用 /start 查看可用命令。") } @@ -140,7 +140,7 @@ func (b *Bot) SendMessage(title, url, group string, pubDate time.Time, matchedKe if _, err := b.api.Send(msg); err != nil { log.Printf("发送消息给用户 %d 失败: %v", userID, err) } else { - log.Printf("成功发送消息给用户 %d", userID) + log.Printf("成功��送消息给用户 %d", userID) b.stats.IncrementMessageCount() } } @@ -204,7 +204,7 @@ func (b *Bot) handleView(chatID int64, userID int64) { b.sendMessage(chatID, text) } -func (b *Bot) handleEdit(chatID int64, userID int64) { +func (b *Bot) handleEditCommand(chatID int64, userID int64) { text := `请选择要执行的编辑命令: 1 - 添加RSS订阅 2 - 编辑RSS订阅 @@ -505,7 +505,7 @@ func (b *Bot) handleVersion(chatID int64) { // 获取最新版本 latestVersion, err := b.getLatestVersion() if err != nil { - b.sendMessage(chatID, fmt.Sprintf("获取最新版本失败:%v", err)) + b.sendMessage(chatID, fmt.Sprintf("获取最新版��失败:%v", err)) return }