1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

42 lines
1.4 KiB
Go
Raw Normal View History

2017-05-16 13:39:59 +02:00
package main
import (
"fmt"
2017-05-19 16:16:14 +02:00
"strconv"
"strings"
2017-05-16 13:39:59 +02:00
)
2017-05-19 16:16:14 +02:00
var banner = []string{
" ** *** Alice ?VERSION ",
" ***** *** * ",
" * *** ** *** Listening on: ?LISTEN",
" *** ** * Routeservers: ?RSCOUNT",
" * ** ** ",
" * ** ** *** **** *** ",
" * ** ** *** * *** * * *** ",
" * ** ** ** * **** * *** ",
" * ** ** ** ** ** *** ",
" ********* ** ** ** ******** ",
" * ** ** ** ** ******* ",
" * ** ** ** ** ** ",
" ***** ** ** ** *** * **** * ",
" * **** ** * *** * *** * ******* ******* ",
"* ** ** *** *** ***** ***** ",
"* ",
" ** ",
2017-05-16 13:39:59 +02:00
}
func printBanner() {
2017-05-19 16:16:14 +02:00
status, _ := NewAppStatus()
mapper := strings.NewReplacer(
"?VERSION", status.Version,
"?LISTEN", AliceConfig.Server.Listen,
"?RSCOUNT", strconv.FormatInt(int64(len(AliceConfig.Sources)), 10),
)
2017-05-16 13:39:59 +02:00
for _, l := range banner {
2017-05-19 16:16:14 +02:00
l = mapper.Replace(l)
2017-05-16 13:39:59 +02:00
fmt.Println(l)
}
}