app(doc): well... write the docs

This commit is contained in:
Schrottkatze 2024-01-19 09:51:48 +01:00
parent 6006f92d9c
commit 0615ea653c
Signed by: schrottkatze
GPG key ID: DFD0FD205943C14A
5 changed files with 25 additions and 6 deletions

View file

@ -1,11 +1,14 @@
use time::{Month, OffsetDateTime};
/// Print the startup message which changes depending on system time.
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 {
// pride startup message
println!("Hello, thanks for using iOwO and happy pride month!");
// TODO: proper link with explaination
println!("Why pride month is important in {}", now.year());
} else {
println!("Hello, thanks for using iOwO! :3");