mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-19 00:13:30 +08:00
Initial commit
This commit is contained in:
23
app/cli/main.go
Normal file
23
app/cli/main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/config"
|
||||
"AynaLivePlayer/controller"
|
||||
"AynaLivePlayer/logger"
|
||||
"fmt"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Printf("BiliAudioBot Revive %s\n", config.VERSION)
|
||||
logger.Logger.SetLevel(logrus.DebugLevel)
|
||||
fmt.Println("Please enter room id")
|
||||
var roomid string
|
||||
|
||||
// Taking input from user
|
||||
fmt.Scanln(&roomid)
|
||||
controller.Initialize()
|
||||
controller.SetDanmuClient(roomid)
|
||||
ch := make(chan int)
|
||||
<-ch
|
||||
}
|
||||
Reference in New Issue
Block a user