Make bot broadcast typing when `exec` run
This commit is contained in:
parent
1546889240
commit
909dabc9eb
|
@ -111,6 +111,7 @@ fn to_code_block(s: &str) -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn execute_and_respond(channel: &ChannelId, command: &str, code: &str) -> Result<(), serenity::Error> {
|
fn execute_and_respond(channel: &ChannelId, command: &str, code: &str) -> Result<(), serenity::Error> {
|
||||||
|
channel.broadcast_typing()?;
|
||||||
let coliru_result = execute_coliru(command, code);
|
let coliru_result = execute_coliru(command, code);
|
||||||
|
|
||||||
match coliru_result {
|
match coliru_result {
|
||||||
|
|
Loading…
Reference in New Issue