update README, security, and user friendliness

This commit is contained in:
2025-02-24 19:39:40 +01:00
parent f17f6e0c16
commit 8939334f84
3 changed files with 29 additions and 9 deletions
+4 -2
View File
@@ -177,8 +177,10 @@ pub async fn http_edit_msg(
pub async fn send_dm(msg: String, args: Args) {
let uid = env::var("ASSISTANT_DM_USER").expect("Missing ASSISTANT_DM_USER env var!").parse::<u64>().unwrap();
let user = UserId::new(uid);
let uid = env::var("ASSISTANT_DM_USER");
if uid.is_err() { return; }
let user = UserId::new(uid.unwrap().parse::<u64>().unwrap());
let token: String;
if !args.test {