Correct typo in path
This commit is contained in:
parent
094d210f64
commit
d496c81003
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2188,7 +2188,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reminder_rs"
|
name = "reminder-rs"
|
||||||
version = "1.6.10"
|
version = "1.6.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
|
10
Cargo.toml
10
Cargo.toml
@ -1,8 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reminder_rs"
|
name = "reminder-rs"
|
||||||
version = "1.6.10"
|
version = "1.6.10"
|
||||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "AGPL-3.0 only"
|
||||||
|
description = "Reminder Bot for Discord, now in Rust"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
poise = "0.4"
|
poise = "0.4"
|
||||||
@ -33,12 +35,14 @@ path = "postman"
|
|||||||
path = "web"
|
path = "web"
|
||||||
|
|
||||||
[package.metadata.deb]
|
[package.metadata.deb]
|
||||||
depends = "$auto, nginx, python3, python3-venv"
|
depends = "$auto, nginx, python3-dateparser"
|
||||||
suggests = "mysql-server-8.0"
|
suggests = "mysql-server-8.0"
|
||||||
maintainer-scripts = "debian"
|
maintainer-scripts = "debian"
|
||||||
assets = [
|
assets = [
|
||||||
["target/release/reminder-rs", "usr/bin/reminder-rs", "755"],
|
["target/release/reminder-rs", "usr/bin/reminder-rs", "755"],
|
||||||
["conf/default.env", "etc/reminder-rs/default.env", "600"]
|
["conf/default.env", "etc/reminder-rs/default.env", "600"],
|
||||||
|
["web/static/", "var/www/reminder-rs/static", "755"],
|
||||||
|
["nginx/reminder-rs", "etc/nginx/sites-available/reminder-rs", "755"]
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.metadata.deb.systemd-units]
|
[package.metadata.deb.systemd-units]
|
||||||
|
@ -88,8 +88,8 @@ async fn main() -> Result<(), Box<dyn StdError + Send + Sync>> {
|
|||||||
async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
|
async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
if Path::new("/etc/soundfx-rs/default.env").exists() {
|
if Path::new("/etc/reminder-rs/default.env").exists() {
|
||||||
dotenv::from_path("/etc/soundfx-rs/default.env")?;
|
dotenv::from_path("/etc/reminder-rs/default.env")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let discord_token = env::var("DISCORD_TOKEN").expect("Missing DISCORD_TOKEN from environment");
|
let discord_token = env::var("DISCORD_TOKEN").expect("Missing DISCORD_TOKEN from environment");
|
||||||
|
Loading…
Reference in New Issue
Block a user