1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-29 09:10:11 +08:00

[console] Add version bar before logo

This commit is contained in:
Karlatemp 2022-09-20 12:38:41 +08:00
parent 678fe6fd6b
commit bf362f9d75
No known key found for this signature in database
GPG Key ID: BA173CA2B9956C59

View File

@ -208,6 +208,21 @@ ___ ____ _ _____ _
*/
append("\n\n")
val textA = """[ Mirai consosle $version ]"""
val logoLength = 94
lightBlue()
val barlength = logoLength - textA.length
val leftWidth = barlength / 2
repeat(leftWidth) {
append('=')
}
append(textA)
repeat(barlength - leftWidth) {
append('=')
}
append('\n')
lightYellow().appendLine(""" __ __ __ __ ______ __""")
lightYellow().appendLine("""| \ / \ \ | \/ \ | \""")
lightYellow().appendLine("""| ▓▓\ / ▓▓\▓▓ ______ ______ \▓▓ ▓▓▓▓▓▓\ ______ _______ _______ ______ | ▓▓ ______""")