hardcore client id
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
|
|
||||||
|
pub const CLIENT_ID: &str = "d420a117a32841c2b3474932e49fb54b";
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub username: String,
|
pub username: String,
|
||||||
pub password: String,
|
pub password: String,
|
||||||
pub client_id: String,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn load(filename: &str) -> Result<Config, toml::de::Error> {
|
pub fn load(filename: &str) -> Result<Config, toml::de::Error> {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ fn main() {
|
|||||||
event_manager.clone(),
|
event_manager.clone(),
|
||||||
cfg.username,
|
cfg.username,
|
||||||
cfg.password,
|
cfg.password,
|
||||||
cfg.client_id,
|
config::CLIENT_ID.to_string(),
|
||||||
queue.clone(),
|
queue.clone(),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user