Skip to content

Commit

Permalink
remove is typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tricked-dev committed Feb 25, 2024
1 parent 9746a76 commit 1c3f5ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ async fn handle_event(
}
Event::MessageCreate(msg) => {
tracing::info!("Message received {}", &msg.content.replace('\n', "\\ "));

locked_state.last_typer = msg.id.get();
// locked_state.last_typer = msg.id.get();

if msg.guild_id.is_none() || msg.author.bot {
return Ok(());
Expand Down Expand Up @@ -315,7 +314,7 @@ async fn handle_event(
{
return Ok(());
}
if event.user_id.get() == locked_state.last_typer {
if event.user_id.get() == locked_state.last_typer || true {
return Ok(());
}
let (msg, _) = join!(
Expand Down

0 comments on commit 1c3f5ac

Please sign in to comment.