Add copy message

This commit is contained in:
2024-05-05 14:56:38 +02:00
parent 3b565e693a
commit 6aa0d2d4bb
6 changed files with 596 additions and 20 deletions

View File

@@ -24,6 +24,9 @@ pub struct Config {
pub files_api_key: String,
pub files_url: String,
pub bot_tokens: Vec<String>,
pub temp_channel_username: String,
pub sentry_dsn: String,
}
@@ -57,6 +60,9 @@ impl Config {
files_api_key: get_env("FILES_SERVER_API_KEY"),
files_url: get_env("FILES_SERVER_URL"),
bot_tokens: serde_json::from_str(&get_env("BOT_TOKENS")).unwrap(),
temp_channel_username: get_env("TEMP_CHANNEL_USERNAME"),
sentry_dsn: get_env("SENTRY_DSN"),
}
}