make the bot more bettererer
This commit is contained in:
parent
979e758bf0
commit
af820871e8
|
@ -114,7 +114,7 @@ async fn handle_packet(e: Event, config: &Arc<RwLock<Config>>, reciever: &Receiv
|
||||||
|
|
||||||
handle_message(pkt.clone(), client, config).await;
|
handle_message(pkt.clone(), client, config).await;
|
||||||
|
|
||||||
let re = Regex::new(r"@[a-z0-9]+:").unwrap();
|
let re = Regex::new(r"@[a-z0-9_-]+:").unwrap();
|
||||||
if !(re.is_match(&pkt.content()) && pkt.uuid() == Some(config.read().await.relay.uuid)) {
|
if !(re.is_match(&pkt.content()) && pkt.uuid() == Some(config.read().await.relay.uuid)) {
|
||||||
for wh in webhooks {
|
for wh in webhooks {
|
||||||
wh
|
wh
|
||||||
|
|
Loading…
Reference in New Issue