Skip to content

Commit

Permalink
Add env_logger to framework_usage
Browse files Browse the repository at this point in the history
:ferrisAware:
  • Loading branch information
kangalio committed Nov 29, 2023
1 parent 84a88cf commit 7b74eb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/feature_showcase/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub struct Data {}

#[tokio::main]
async fn main() {
env_logger::init();

let framework = poise::Framework::builder()
.options(poise::FrameworkOptions {
commands: vec![
Expand Down Expand Up @@ -77,6 +79,7 @@ async fn main() {
},
on_error: |error| {
Box::pin(async move {
println!("what the hell");
match error {
poise::FrameworkError::ArgumentParse { error, .. } => {
if let Some(error) = error.downcast_ref::<serenity::RoleParseError>() {
Expand Down

0 comments on commit 7b74eb9

Please sign in to comment.