Interactive Notifications v2

This commit is contained in:
Araxeus
2023-01-08 14:50:38 +02:00
parent 027d4ce3f0
commit 70522173b7
13 changed files with 305 additions and 273 deletions

View File

@ -0,0 +1,22 @@
const { setOptions, setMenuOptions } = require("../../config/plugins");
let config;
module.exports.init = (options) => {
config = options;
}
module.exports.setAndMaybeRestart = (option, value) => {
config[option] = value;
setMenuOptions("notifications", config);
}
module.exports.set = (option, value) => {
config[option] = value;
setOptions("notifications", config);
}
module.exports.get = (option) => {
let res = config[option];
return res;
}