uberbot/src/config.rs

27 lines
592 B
Rust
Raw Normal View History

2022-07-15 10:58:45 -05:00
use std::net::SocketAddr;
use serde::Deserialize;
#[derive(Deserialize)]
pub struct UberConfig {
pub irc: IrcConfig,
pub spotify: SpotifyConfig, // TODO: make optional
pub db_path: Option<String>,
}
#[derive(Deserialize)]
pub struct SpotifyConfig {
pub spotify_client_id: String,
pub spotify_client_secret: String,
}
#[derive(Deserialize)]
pub struct IrcConfig {
pub channels: Vec<String>,
pub host: String,
pub tls: bool,
pub mode: Option<String>,
pub nickname: Option<String>,
pub port: u16,
pub username: String,
pub prefix: String,
}