camila314 / vencord-KeywordNotify

Vencord third-party plugin to "ping" the user if a message matches custom regular expressions
16 stars 3 forks source link

Keywords don't appear to be saved with settings.json #3

Open XDelta opened 7 months ago

XDelta commented 7 months ago

I looked in my settings.json and didn't see any of the keywords being saved there but it does appear to be the correct settings as changing ignoreBots does update that section

"KeywordNotify": {
    "enabled": true,
    "ignoreBots": true
},

It looks like (at a brief glance) it is supposed to save them as part of the settings.json https://github.com/camila314/vencord-KeywordNotify/blob/main/index.tsx#L247-L251

x3rt commented 6 months ago

They get saved in the Datastore because it's a custom component. await Vencord.Api.DataStore.get("KeywordNotify_keywordEntries");

There is a bug where changing ids doesn't update the datastore unless you delete/add another keyword entry. Which will be fixed with #4

x3rt commented 5 months ago

What I mentioned above is fixed.

Your keywords still won't appear in settings.json though as they are saved in the DataStore