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" "strconv"
"time" "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" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
) )
@ -70,7 +70,7 @@ func setupBot() {
func runGuard() { func runGuard() {
for { for {
try(func() { try(func() {
guard.Run() service.RunGuard()
}, "Guard") }, "Guard")
} }
} }
@ -78,7 +78,7 @@ func runGuard() {
func runBinance() { func runBinance() {
for { for {
try(func() { try(func() {
binance.Run() service.RunBinance()
}, "Binance") }, "Binance")
} }
} }

View File

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