diff --git a/src/commands/oai.rs b/src/commands/oai.rs index fbc55b9..1576be2 100644 --- a/src/commands/oai.rs +++ b/src/commands/oai.rs @@ -189,7 +189,6 @@ impl OAI { pub async fn generate_response(ctx: &Context, msg: &Message, oai: &OAI, pool: &Pool>) { debug!("Generating response for message: {}", msg.content); - let typing = msg.channel_id.start_typing(&ctx.http).unwrap(); let guild_id = msg.guild_id.unwrap(); let channel_id = msg.channel_id; @@ -276,6 +275,8 @@ pub async fn generate_response(ctx: &Context, msg: &Message, oai: &OAI, pool: &P } }; + let typing = response_channel.start_typing(&ctx.http).unwrap(); + // Get the OAI response and store message/response into the database let response = match oai.get_request(request).await { Ok(r) => {