From 3e6285c076eeaf2d4434a8ab0b5c9487733cef5e Mon Sep 17 00:00:00 2001 From: core Date: Fri, 21 Jul 2023 23:47:17 -0400 Subject: [PATCH] fix the chatspam problem again --- websocket-worker/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-worker/src/main.rs b/websocket-worker/src/main.rs index f457897..406e0b6 100644 --- a/websocket-worker/src/main.rs +++ b/websocket-worker/src/main.rs @@ -80,7 +80,7 @@ async fn main() -> Result<(), Box> { return Err("Disconnected by server")?; } GatewayPacketS2C::Relayed { msg } => { - if msg.message.contains("/skill") { continue; } // fix chatspam problem + if msg.message.starts_with("/skill") { continue; } // fix chatspam problem info!("msg: {:?}", msg); if matches!(msg.source, Discord) { continue; } for wh in &config.websockets {