songy

telegram bot as a songbook
git clone git://git.relim.de/songy.git
Log | Files | Refs | README | LICENSE

commit e4c6bc74e0c9eb90e10df3201b8544130dfed067
parent 6b2f3c5607b17ea4e69a22989ccb801a0525ce88
Author: devnibo <kroekerrobin@gmail.com>
Date:   Sun, 16 Mar 2025 16:19:03 +0100

Set english as default language

Diffstat:
Msrc/main.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -38,7 +38,6 @@ struct Config { #[arg( short, long, - default_value = "en", help = "language that the bot speaks: 'en', 'de' or 'ro/md'" )] lang: Option<String>, @@ -205,6 +204,9 @@ fn get_config() -> Config { eprintln!("Provide at least a --token and a --songs-path."); process::exit(-1); } + if config.lang.is_none() { + config.lang = Some(String::from("en")); + } config }