Skip to content

Commit

Permalink
fix: ignore ai if no key
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Mar 24, 2024
1 parent 1b01029 commit bd634d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions telegram/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func checkSave(b *Bot, message *tgbotapi.Message) {
}

func checkOpenAI(b *Bot, message *tgbotapi.Message) {
if b.ai == nil {
return
}
if !b.isAuthedChat(message.Chat) {
return
}
Expand Down

0 comments on commit bd634d0

Please sign in to comment.