mirror of
https://github.com/woodchen-ink/Q58Bot.git
synced 2025-07-18 05:42:06 +08:00
28 lines
476 B
Go
28 lines
476 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/woodchen-ink/Q58Bot/core"
|
|
"github.com/woodchen-ink/Q58Bot/service"
|
|
"github.com/woodchen-ink/Q58Bot/service/binance"
|
|
)
|
|
|
|
func main() {
|
|
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
|
|
|
|
err := core.Init()
|
|
if err != nil {
|
|
log.Fatalf("Failed to initialize service: %v", err)
|
|
}
|
|
|
|
err = service.RunMessageHandler()
|
|
if err != nil {
|
|
log.Fatalf("Error in RunMessageHandler: %v", err)
|
|
}
|
|
|
|
go binance.RunBinance()
|
|
|
|
select {}
|
|
}
|