Module: Yuurisan::Banner

Defined in:
lib/yuurisan/banner.rb

Constant Summary collapse

RESET =
"\e[0m"
BOLD =
"\e[1m"
CYAN =
"\e[36m"
MAGENTA =
"\e[35m"
GREEN =
"\e[32m"
YELLOW =
"\e[33m"

Class Method Summary collapse

Class Method Details

.show(bot_name) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/yuurisan/banner.rb', line 15

def self.show(bot_name)
  system("cls") || system("clear")

  ascii_art = Artii::Base.new(font: "standard").asciify("Yuurisandesu").rstrip

  timestamp = Time.now.strftime("%d-%m-%Y %H:%M:%S")

  puts "#{CYAN}#{BOLD}#{ascii_art}#{RESET}"
  puts ""
  puts "#{MAGENTA}#{BOLD}Welcome to Yuuri's #{bot_name}#{RESET}"
  puts "#{GREEN}#{BOLD}Join our community: https://t.me/Y3YuYuYo#{RESET}"
  puts "#{YELLOW}#{BOLD}Current time: #{timestamp}#{RESET}"
  puts ""
end