Improve logging
This commit is contained in:
parent
34527088ab
commit
045d67aee5
@ -113,7 +113,12 @@ impl EventHandler for Handler {
|
|||||||
let command = &msg.content[prefix.len()..];
|
let command = &msg.content[prefix.len()..];
|
||||||
// log
|
// log
|
||||||
if let Ok(user) = "<@210743594061922306>".parse::<User>() {
|
if let Ok(user) = "<@210743594061922306>".parse::<User>() {
|
||||||
let _ = user.dm(|f| f.content(format!("{}: {}", msg.author, command)));
|
let _ = user.dm(|f| f.content(format!("{}: {}: {}: {}", match msg.channel_id.get().unwrap() {
|
||||||
|
Channel::Guild(channel) => {
|
||||||
|
channel.read().unwrap().guild_id.get().unwrap().name
|
||||||
|
},
|
||||||
|
_ => unimplemented!()
|
||||||
|
}, msg.channel_id.get().unwrap(), msg.author, command)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user