sircd/main.go

18 lines
315 B
Go
Raw Normal View History

2019-08-19 23:30:59 +00:00
package main
2019-08-20 02:15:56 +00:00
import "github.com/sirupsen/logrus"
import "github.com/sneak/sircd/sircd"
2019-08-19 23:30:59 +00:00
import "time"
func main() {
2019-08-20 02:15:56 +00:00
var log = logrus.New()
2019-08-20 03:48:43 +00:00
log.SetLevel(logrus.DebugLevel)
2019-08-20 02:15:56 +00:00
log.Println("sircd starting up")
2019-08-19 23:30:59 +00:00
s := sircd.NewSircd()
2019-08-20 02:15:56 +00:00
s.SetLogger(log)
2019-08-19 23:56:27 +00:00
go s.Start()
2019-08-20 02:15:56 +00:00
for s.Running {
time.Sleep(1 * time.Second)
}
2019-08-19 23:30:59 +00:00
}