Update FriendNotifications.plugin.js
This commit is contained in:
parent
376aefa656
commit
a6d4e9e55d
|
@ -2,7 +2,7 @@
|
|||
* @name FriendNotifications
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.7.4
|
||||
* @version 1.7.5
|
||||
* @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,10 +17,13 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "FriendNotifications",
|
||||
"author": "DevilBro",
|
||||
"version": "1.7.4",
|
||||
"version": "1.7.5",
|
||||
"description": "Shows a Notification when a Friend or a User, you choose to observe, changes their Status"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"$statusOld $status": "Both work now"
|
||||
},
|
||||
"improved": {
|
||||
"Default Settings": "Added extended Options to configure a default Setup for new Users"
|
||||
}
|
||||
|
@ -874,7 +877,7 @@ module.exports = (_ => {
|
|||
}
|
||||
};
|
||||
if (observedUsers[id][status.name] == notificationTypes.DESKTOP.value) {
|
||||
let desktopString = string.replace(/\$user/g, `${name}${this.settings.general.showDiscriminator ? ("#" + user.discriminator) : ""}`).replace(/\$status/g, statusName).replace(/\$statusOld/g, oldStatusName);
|
||||
let desktopString = string.replace(/\$user/g, `${name}${this.settings.general.showDiscriminator ? ("#" + user.discriminator) : ""}`).replace(/\$statusOld/g, oldStatusName).replace(/\$status/g, statusName);
|
||||
if (status.activity) desktopString = desktopString.replace(/\$song|\$game/g, status.activity.name || status.activity.details || "").replace(/\$artist|\$custom/g, [status.activity.emoji && status.activity.emoji.name, status.activity.state].filter(n => n).join(" ") || "");
|
||||
if (status.mobile) desktopString += " (mobile)";
|
||||
let notificationSound = this.settings.notificationSounds["desktop" + status.name] || {};
|
||||
|
|
Loading…
Reference in New Issue