feat: modified the flake to use the new api #12
4 changed files with 0 additions and 31 deletions
22
Cargo.lock
generated
22
Cargo.lock
generated
|
@ -540,27 +540,6 @@ dependencies = [
|
|||
"subtle",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "csv"
|
||||
version = "1.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "626ae34994d3d8d668f4269922248239db4ae42d538b14c398b74a52208e8086"
|
||||
dependencies = [
|
||||
"csv-core",
|
||||
"itoa",
|
||||
"ryu",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "csv-core"
|
||||
version = "0.1.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ctr"
|
||||
version = "0.6.0"
|
||||
|
@ -2418,7 +2397,6 @@ name = "skynet_discord_bot"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"csv",
|
||||
"dotenvy",
|
||||
"lettre",
|
||||
"maud",
|
||||
|
|
|
@ -29,9 +29,6 @@ rand = "0.8.5"
|
|||
# fancy time stuff
|
||||
chrono = "0.4.26"
|
||||
|
||||
# handlign teh csv export from wolves
|
||||
csv = "1.2"
|
||||
|
||||
# for email
|
||||
lettre = "0.10.4"
|
||||
maud = "0.25.0"
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
SKYNET_SERVER = cfg.discord.server;
|
||||
HOME = cfg.home;
|
||||
DATABASE = "database.db";
|
||||
CSV = "wolves.csv";
|
||||
};
|
||||
|
||||
service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}");
|
||||
|
|
|
@ -23,7 +23,6 @@ pub struct Config {
|
|||
pub ldap_api: String,
|
||||
pub home: String,
|
||||
pub database: String,
|
||||
pub csv: String,
|
||||
|
||||
pub auth: String,
|
||||
pub discord_token: String,
|
||||
|
@ -55,7 +54,6 @@ pub fn get_config() -> Config {
|
|||
|
||||
home: ".".to_string(),
|
||||
database: "database.db".to_string(),
|
||||
csv: "wolves.csv".to_string(),
|
||||
|
||||
mail_smtp: "".to_string(),
|
||||
mail_user: "".to_string(),
|
||||
|
@ -75,9 +73,6 @@ pub fn get_config() -> Config {
|
|||
if let Ok(x) = env::var("DATABASE") {
|
||||
config.database = x.trim().to_string();
|
||||
}
|
||||
if let Ok(x) = env::var("CSV") {
|
||||
config.csv = x.trim().to_string();
|
||||
}
|
||||
|
||||
if let Ok(x) = env::var("LDAP_DISCORD_AUTH") {
|
||||
config.auth = x.trim().to_string();
|
||||
|
|
Loading…
Reference in a new issue