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

42 lines
1.4 KiB
Go

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