chore: code-check

This commit is contained in:
ryan
2026-08-28 13:42:49 +08:00
parent 9213ee79b3
commit 48211fa587
12 changed files with 289 additions and 41 deletions
@@ -12,6 +12,7 @@ import (
"strconv"
"strings"
"Wavelet/pkg/util"
"Wavelet/plugins/domain/message_gateway"
tele "gopkg.in/telebot.v4"
)
@@ -65,11 +66,13 @@ func (a *Adapter) Connect(ctx context.Context) error {
a.handleTeleMessage(ctx, c.Message())
return nil
})
go bot.Start()
go func() {
util.Go(func() {
bot.Start()
})
util.Go(func() {
<-ctx.Done()
bot.Stop()
}()
})
return nil
}