KiBot/kibot/banner.py

113 lines
5.5 KiB
Python

# -*- coding: utf-8 -*-
# Copyright (c) 2023 Salvador E. Tropea
# Copyright (c) 2023 Instituto Nacional de Tecnología Industrial
# License: AGPL-3.0
# Project: KiBot (formerly KiPlot)
# ASCII Art generated by https://patorjk.com/
""" Banners module """
import random
BANNERS = ("""
KKKKKKKKK KKKKKKK iiii BBBBBBBBBBBBBBBBB tttt
K:::::::K K:::::K i::::i B::::::::::::::::B ttt:::t
K:::::::K K:::::K iiii B::::::BBBBBB:::::B t:::::t
K:::::::K K::::::K BB:::::B B:::::B t:::::t
KK::::::K K:::::KKKiiiiiii B::::B B:::::B ooooooooooo ttttttt:::::ttttttt
K:::::K K:::::K i:::::i B::::B B:::::B oo:::::::::::oo t:::::::::::::::::t
K::::::K:::::K i::::i B::::BBBBBB:::::B o:::::::::::::::ot:::::::::::::::::t
K:::::::::::K i::::i B:::::::::::::BB o:::::ooooo:::::otttttt:::::::tttttt
K:::::::::::K i::::i B::::BBBBBB:::::B o::::o o::::o t:::::t
K::::::K:::::K i::::i B::::B B:::::Bo::::o o::::o t:::::t
K:::::K K:::::K i::::i B::::B B:::::Bo::::o o::::o t:::::t
KK::::::K K:::::KKK i::::i B::::B B:::::Bo::::o o::::o t:::::t tttttt
K:::::::K K::::::Ki::::::iBB:::::BBBBBB::::::Bo:::::ooooo:::::o t::::::tttt:::::t
K:::::::K K:::::Ki::::::iB:::::::::::::::::B o:::::::::::::::o tt::::::::::::::t
K:::::::K K:::::Ki::::::iB::::::::::::::::B oo:::::::::::oo tt:::::::::::tt
KKKKKKKKK KKKKKKKiiiiiiiiBBBBBBBBBBBBBBBBB ooooooooooo ttttttttttt
""",
"""
'##:::'##:'####:'########:::'#######::'########:
##::'##::. ##:: ##.... ##:'##.... ##:... ##..::
##:'##:::: ##:: ##:::: ##: ##:::: ##:::: ##::::
#####::::: ##:: ########:: ##:::: ##:::: ##::::
##. ##:::: ##:: ##.... ##: ##:::: ##:::: ##::::
##:. ##::: ##:: ##:::: ##: ##:::: ##:::: ##::::
##::. ##:'####: ########::. #######::::: ##::::
..::::..::....::........::::.......::::::..:::::
""", # noqa: E128
"""
8 8888 ,88' 8 8888 8 888888888o ,o888888o. 8888888 8888888888
8 8888 ,88' 8 8888 8 8888 `88. . 8888 `88. 8 8888
8 8888 ,88' 8 8888 8 8888 `88 ,8 8888 `8b 8 8888
8 8888 ,88' 8 8888 8 8888 ,88 88 8888 `8b 8 8888
8 8888 ,88' 8 8888 8 8888. ,88' 88 8888 88 8 8888
8 8888 88' 8 8888 8 8888888888 88 8888 88 8 8888
8 888888< 8 8888 8 8888 `88. 88 8888 ,8P 8 8888
8 8888 `Y8. 8 8888 8 8888 88 `8 8888 ,8P 8 8888
8 8888 `Y8. 8 8888 8 8888 ,88' ` 8888 ,88' 8 8888
8 8888 `Y8. 8 8888 8 888888888P `8888888P' 8 8888
""", # noqa: E128
'''
888 d8P d8b 888888b. 888
888 d8P Y8P 888 "88b 888
888 d8P 888 .88P 888
888d88K 888 8888888K. .d88b. 888888
8888888b 888 888 "Y88b d88""88b 888
888 Y88b 888 888 888 888 888 888
888 Y88b 888 888 d88P Y88..88P Y88b.
888 Y88b 888 8888888P" "Y88P" "Y888
''', # noqa: E128
"""
`7MMF' `YMM' db `7MM\"""Yp, mm
MM .M' MM Yb MM
MM .d" `7MM MM dP ,pW"Wq.mmMMmm
MMMMM. MM MM\"""bg. 6W' `Wb MM
MM VMA MM MM `Y 8M M8 MM
MM `MM. MM MM ,9 YA. ,A9 MM
.JMML. MMb..JMML..JMMmmmd9 `Ybmd9' `Mbmo
""", # noqa: E128
"""
oooo oooo o8o oooooooooo. .
`888 .8P' `"' `888' `Y8b .o8
888 d8' oooo 888 888 .ooooo. .o888oo
88888[ `888 888oooo888' d88' `88b 888
888`88b. 888 888 `88b 888 888 888
888 `88b. 888 888 .88P 888 888 888 .
o888o o888o o888o o888bood8P' `Y8bod8P' "888"
""", # noqa: E128
"""
,ggg, gg ,ggggggggggg,
dP""Y8b dP dP"\""88\"""\"""Y8, I8
Yb, `88 d8' Yb, 88 `8b I8
`" 88 ,dP' gg `" 88 ,8P 88888888
88aaad8" "" 88aaaad8P" I8
88"\"""Yb, gg 88"\"""Y8ba ,ggggg, I8
88 "8b 88 88 `8b dP" "Y8ggg I8
88 `8i 88 88 ,8P i8' ,8I ,I8,
88 Yb,_,88,_ 88_____,d8',d8, ,d8' ,d88b,
88 Y88P""Y8 88888888P" P"Y8888P" 88P""Y88
""", # noqa: E128
r"""
.----------------. .----------------. .----------------. .----------------. .----------------.
| .--------------. | .--------------. | .--------------. | .--------------. | .--------------. |
| | ___ ____ | | | _____ | | | ______ | | | ____ | | | _________ | |
| | |_ ||_ _| | | | |_ _| | | | |_ _ \ | | | .' `. | | | | _ _ | | |
| | | |_/ / | | | | | | | | | |_) | | | | / .--. \ | | | |_/ | | \_| | |
| | | __'. | | | | | | | | | __'. | | | | | | | | | | | | | |
| | _| | \ \_ | | | _| |_ | | | _| |__) | | | | \ `--' / | | | _| |_ | |
| | |____||____| | | | |_____| | | | |_______/ | | | `.____.' | | | |_____| | |
| | | | | | | | | | | | | | | |
| '--------------' | '--------------' | '--------------' | '--------------' | '--------------' |
'----------------' '----------------' '----------------' '----------------' '----------------'
""") # noqa: E128
def get_banner(id):
n = len(BANNERS)
if id < 0:
id = random.randint(0, n-1)
else:
id = id % n
return BANNERS[id]