mirror of
https://github.com/woodchen-ink/Q58Bot.git
synced 2025-07-18 13:52:07 +08:00
fix bugs
This commit is contained in:
parent
bd1d4b2e2b
commit
8775ac9b7c
6
main.go
6
main.go
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user