forked from katzen-cafe/iowo
split up modules into subfiles
This commit is contained in:
parent
4788278d86
commit
96374b6491
5 changed files with 140 additions and 151 deletions
13
crates/app/src/welcome_msg.rs
Normal file
13
crates/app/src/welcome_msg.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use time::{Month, OffsetDateTime};
|
||||
|
||||
pub fn print_startup_msg() {
|
||||
// now or fallback to utc
|
||||
let now = OffsetDateTime::now_local().unwrap_or_else(|_| OffsetDateTime::now_utc());
|
||||
|
||||
if now.month() == Month::June {
|
||||
println!("Hello, thanks for using iOwO and happy pride month!");
|
||||
println!("Why pride month is important in {}", now.year());
|
||||
} else {
|
||||
println!("Hello, thanks for using iOwO! :3");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue