feat: ignore bot msg

This commit is contained in:
Vaala Cat
2023-08-28 14:10:31 +08:00
parent 8f7bb8feba
commit 46cf57764c
4 changed files with 12 additions and 3 deletions

View File

@@ -60,7 +60,9 @@ func Run(sendFunc func(string)) {
logrus.Infof("id is %d", m.Chat.ID)
m := fmt.Sprintf("%v: %v", m.From.UserName, m.CommandArguments())
sendFunc(m)
logrus.WithError(err).Error("send message error")
if err != nil {
logrus.WithError(err).Error("send message error")
}
return
}
if m.Command() == "list" {