Compare commits
2 Commits
72432181db
...
45b4099c1f
Author | SHA1 | Date | |
---|---|---|---|
45b4099c1f | |||
62473dea60 |
@ -11,8 +11,8 @@
|
||||
"Ok": null,
|
||||
"MaybeScam": null,
|
||||
"LikelyScam": {
|
||||
"plain": "Warning! This message is likely to be a scam, seeking to lure you in and steal your money! Please visit these resources for more information:\n- https://www.sec.gov/oiea/investor-alerts-and-bulletins/digital-asset-and-crypto-investment-scams-investor-alert \n [!mods !modhelp]",
|
||||
"html": "Warning! This message is likely to be a <b>scam</b>, seeking to lure you in and steal your money! Please visit these resources for more information: <ul><li><a href=\"https://www.sec.gov/oiea/investor-alerts-and-bulletins/digital-asset-and-crypto-investment-scams-investor-alert\">https://www.sec.gov/oiea/investor-alerts-and-bulletins/digital-asset-and-crypto-investment-scams-investor-alert</a></li></ul> [!mods !modhelp]"
|
||||
"plain": "Warning! This message is likely to be a scam, seeking to lure you in and steal your money! Please visit these resources for more information:\n- https://www.sec.gov/oiea/investor-alerts-and-bulletins/digital-asset-and-crypto-investment-scams-investor-alert\n- https://www.youtube.com/watch?v=gFWaA7mt9oM \n [!mods !modhelp]",
|
||||
"html": "Warning! This message is likely to be a <b>scam</b>, seeking to lure you in and steal your money! Please visit these resources for more information: <ul><li><a href=\"https://www.sec.gov/oiea/investor-alerts-and-bulletins/digital-asset-and-crypto-investment-scams-investor-alert\">https://www.sec.gov/oiea/investor-alerts-and-bulletins/digital-asset-and-crypto-investment-scams-investor-alert</a></li><li><a href=\"https://www.youtube.com/watch?v=gFWaA7mt9oM\">https://www.youtube.com/watch?v=gFWaA7mt9oM</a></li></ul> [!mods !modhelp]"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,13 @@
|
||||
use serde_json::Value;
|
||||
use matrix_sdk::ruma::OwnedRoomId;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct RoomConfig {
|
||||
pub id: OwnedRoomId,
|
||||
pub no_reply: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Config {
|
||||
pub keywords: Value,
|
||||
pub responses: Value,
|
||||
|
@ -96,12 +96,12 @@ impl Judgement {
|
||||
}
|
||||
|
||||
let mut result = JudgementResult::LikelyScam;
|
||||
if count_all == 0 {
|
||||
result = JudgementResult::Ok
|
||||
}
|
||||
if count_all < total {
|
||||
result = JudgementResult::MaybeScam
|
||||
}
|
||||
if count_all == 0 {
|
||||
result = JudgementResult::Ok
|
||||
}
|
||||
|
||||
// Send message
|
||||
let msg = RoomMessageEventContent::text_html(
|
||||
|
Loading…
Reference in New Issue
Block a user