aboutsummaryrefslogtreecommitdiff
path: root/src/bot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.rs')
-rw-r--r--src/bot.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bot.rs b/src/bot.rs
index 0c44349..ec0bf92 100644
--- a/src/bot.rs
+++ b/src/bot.rs
@@ -258,11 +258,11 @@ fn on_err(err: FrameworkError<PoiseData, anyhow::Error>) -> BoxFuture<()> {
} else {
return;
}
- }
+ },
Err(e) => {
error!("processing unrecognized message: {e}");
"BANIC".to_string()
- }
+ },
}
} else {
if let Err(e) = commands::meme::invoke::_meme(
@@ -270,7 +270,7 @@ fn on_err(err: FrameworkError<PoiseData, anyhow::Error>) -> BoxFuture<()> {
msg_content,
Default::default(),
)
- .await
+ .await
{
error!("producing meme for unrecognized: {e}");
"BANIC".to_string()
@@ -278,7 +278,7 @@ fn on_err(err: FrameworkError<PoiseData, anyhow::Error>) -> BoxFuture<()> {
return;
}
}
- }
+ },
_ => "BANIC".to_string(),
};
@@ -377,7 +377,7 @@ fn check(ctx: PoiseContext) -> BoxFuture<anyhow::Result<bool>> {
})
}
-fn before_handle<'fut>(ctx: PoiseContext<'fut>) -> Pin<Box<dyn Future<Output=()> + Send + 'fut>> {
+fn before_handle<'fut>(ctx: PoiseContext<'fut>) -> Pin<Box<dyn Future<Output = ()> + Send + 'fut>> {
debug!(
"got command '{}' from user '{}' ({})",
ctx.command().name,