Add activity

This commit is contained in:
2024-03-09 13:32:25 +01:00
parent 795cc2e8d2
commit eaae9e12e1
2 changed files with 9 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ fn get_env(env: &'static str) -> String {
pub struct Config {
pub discord_bot_token: String,
pub discord_channel_id: u64,
pub discord_bot_activity: String,
pub telegram_bot_token: String,
pub telgram_channel_id: i128,
}
@@ -19,6 +20,7 @@ impl Config {
Config {
discord_bot_token: get_env("DISCORD_BOT_TOKEN"),
discord_channel_id: get_env("DISCORD_CHANNEL_ID").parse().unwrap(),
discord_bot_activity: get_env("DISCORD_BOT_ACTIVITY"),
telegram_bot_token: get_env("TELEGRAM_BOT_TOKEN"),
telgram_channel_id: get_env("TELEGRAM_CHANNEL_ID").parse().unwrap(),
}