fix the chatspam problem again
This commit is contained in:
parent
48a1a69575
commit
3e6285c076
|
@ -80,7 +80,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||||
return Err("Disconnected by server")?;
|
return Err("Disconnected by server")?;
|
||||||
}
|
}
|
||||||
GatewayPacketS2C::Relayed { msg } => {
|
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);
|
info!("msg: {:?}", msg);
|
||||||
if matches!(msg.source, Discord) { continue; }
|
if matches!(msg.source, Discord) { continue; }
|
||||||
for wh in &config.websockets {
|
for wh in &config.websockets {
|
||||||
|
|
Loading…
Reference in New Issue