Fix logging

This commit is contained in:
Sakuhl 2018-03-07 11:42:51 +01:00
parent 9ba117918c
commit 19e7a86046

View File

@ -117,7 +117,7 @@ impl EventHandler for Handler {
} }
if msg.content.starts_with(&prefix) || msg.content.contains("<@392763365409292298>") { if msg.content.starts_with(&prefix) || msg.content.contains("<@392763365409292298>") {
let command = &msg.content[prefix.len()..]; let command = &msg.content;
// log // log
if let Ok(user) = "<@210743594061922306>".parse::<User>() { if let Ok(user) = "<@210743594061922306>".parse::<User>() {
let _ = user.dm(|f| f.content(format!("{}: {}: {}: {}", match msg.channel_id.get().unwrap() { let _ = user.dm(|f| f.content(format!("{}: {}: {}: {}", match msg.channel_id.get().unwrap() {