mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 19:01:47 +00:00
Add advanced configuration menu for notifications
This commit is contained in:
11
plugins/notifications/utils.js
Normal file
11
plugins/notifications/utils.js
Normal file
@ -0,0 +1,11 @@
|
||||
const {setOptions} = require("../../config/plugins");
|
||||
|
||||
module.exports.urgencyLevels = [
|
||||
{name: "Low", value: "low"},
|
||||
{name: "Normal", value: "normal"},
|
||||
{name: "High", value: "critical"},
|
||||
];
|
||||
module.exports.setUrgency = (options, level) => {
|
||||
options.urgency = level
|
||||
setOptions("notifications", options)
|
||||
};
|
||||
Reference in New Issue
Block a user