This commit is contained in:
wood chen 2024-09-18 01:43:33 +08:00
parent bd1d4b2e2b
commit 8775ac9b7c
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import (
"strconv"
"time"
binance "github.com/woodchen-ink/Q58Bot/service"
"github.com/woodchen-ink/Q58Bot/service"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)
@ -70,7 +70,7 @@ func setupBot() {
func runGuard() {
for {
try(func() {
guard.Run()
service.RunGuard()
}, "Guard")
}
}
@ -78,7 +78,7 @@ func runGuard() {
func runBinance() {
for {
try(func() {
binance.Run()
service.RunBinance()
}, "Binance")
}
}

View File

@ -135,7 +135,7 @@ func sendPriceUpdate() {
lastMsgID = sentMsg.MessageID
}
func Run() {
func RunBinance() {
log.Println("Sending initial price update...")
sendPriceUpdate()