fix the chatspam problem again

This commit is contained in:
core 2023-07-21 23:47:17 -04:00
parent 48a1a69575
commit 3e6285c076
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
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 {