This commit is contained in:
2024-05-13 21:28:53 +02:00
parent 0f71849302
commit 1f6cc010e0
5 changed files with 49 additions and 22 deletions

View File

@@ -11,6 +11,8 @@ pub struct Config {
pub discord_guild_id: u64,
pub discord_channel_id: u64,
pub discord_bot_activity: String,
// pub discord_game_list_channel_id: u64,
// pub discord_game_list_message_id: u64,
pub telegram_bot_token: String,
pub telegram_channel_id: i128,
}
@@ -23,6 +25,8 @@ impl Config {
discord_guild_id: get_env("DISCORD_GUILD_ID").parse().unwrap(),
discord_channel_id: get_env("DISCORD_CHANNEL_ID").parse().unwrap(),
discord_bot_activity: get_env("DISCORD_BOT_ACTIVITY"),
// discord_game_list_channel_id: get_env("DISCORD_GAME_LIST_CHANNEL_ID").parse().unwrap(),
// discord_game_list_message_id: get_env("DISCORD_GAME_LIST_MESSAGE_ID").parse().unwrap(),
telegram_bot_token: get_env("TELEGRAM_BOT_TOKEN"),
telegram_channel_id: get_env("TELEGRAM_CHANNEL_ID").parse().unwrap(),
}