From 45b4099c1f5085813e104c300d73dcd529d1602c Mon Sep 17 00:00:00 2001 From: 0xf8 <0xf8.dev@proton.me> Date: Sat, 15 Apr 2023 21:50:17 -0400 Subject: [PATCH] Modify responses and add a struct for future room-specific configs --- config/responses.json | 4 ++-- src/config.rs | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/responses.json b/config/responses.json index c8fe659..b0e2cb5 100644 --- a/config/responses.json +++ b/config/responses.json @@ -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 scam, seeking to lure you in and steal your money! Please visit these resources for more information: [!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 scam, seeking to lure you in and steal your money! Please visit these resources for more information: [!mods !modhelp]" } } } \ No newline at end of file diff --git a/src/config.rs b/src/config.rs index 5a6b092..02ca17b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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,