initial commit

This commit is contained in:
2026-04-17 09:49:34 +02:00
commit 8553c710f2
23 changed files with 1212 additions and 0 deletions

13
bot/src/utils/flags.rs Normal file
View File

@@ -0,0 +1,13 @@
pub fn country_code_to_flag(code: &str) -> String {
if code.len() != 2 {
return "🏳".to_string();
}
code.to_uppercase()
.chars()
.map(|c| {
// regional indicator symbols start at 0x1F1E6 ('A')
char::from_u32(0x1F1E6 + (c as u32 - 'A' as u32)).unwrap_or('?')
})
.collect()
}