Skip to content

Commit

Permalink
fix:构建报错
Browse files Browse the repository at this point in the history
  • Loading branch information
3377 committed Dec 17, 2024
1 parent 34148ef commit 193034b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified README.pdf
Binary file not shown.
8 changes: 4 additions & 4 deletions internal/bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 查看可用命令。")
}
Expand Down Expand Up @@ -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()
}
}
Expand Down Expand Up @@ -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订阅
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 193034b

Please sign in to comment.