stuff
This commit is contained in:
parent
5ac1612fa5
commit
f6bc4b5cac
|
@ -2,7 +2,7 @@
|
||||||
* @name FriendNotifications
|
* @name FriendNotifications
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.9.8
|
* @version 1.9.9
|
||||||
* @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status
|
* @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -706,9 +706,9 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
BDFDB.NotificationUtils.toast("Use a valid direct Link to a Video or Audio Source, they usually end on something like .mp3, .mp4 or .wav", {type: "danger"});
|
BDFDB.NotificationUtils.toast("Use a valid direct Link to a Video or Audio Source, they usually end on something like .mp3, .mp4 or .wav", {type: "danger"});
|
||||||
});
|
});
|
||||||
else BDFDB.LibraryRequires.fs.readFile(source, "utf8", (error, body) => {
|
else BDFDB.LibraryRequires.fs.readFile(source, "base64", (error, body) => {
|
||||||
if (error) BDFDB.NotificationUtils.toast("Could not fetch File, please make sure the File exists", {type: "danger"});
|
if (error) BDFDB.NotificationUtils.toast("Could not fetch File, please make sure the File exists", {type: "danger"});
|
||||||
else successSavedAudio(key, source, `data:audio/mpeg;base64,${btoa(body)}`);
|
else successSavedAudio(key, source, `data:audio/mpeg;base64,${body}`);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
children: BDFDB.LanguageUtils.LanguageStrings.SAVE
|
children: BDFDB.LanguageUtils.LanguageStrings.SAVE
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name NotificationSounds
|
* @name NotificationSounds
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 3.8.7
|
* @version 3.8.8
|
||||||
* @description Allows you to replace the native Sounds with custom Sounds
|
* @description Allows you to replace the native Sounds with custom Sounds
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -435,9 +435,9 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
BDFDB.NotificationUtils.toast("Use a valid direct link to a video or audio source, they usually end on something like .mp3, .mp4 or .wav", {type: "danger"});
|
BDFDB.NotificationUtils.toast("Use a valid direct link to a video or audio source, they usually end on something like .mp3, .mp4 or .wav", {type: "danger"});
|
||||||
});
|
});
|
||||||
else BDFDB.LibraryRequires.fs.readFile(source, "utf8", (error, body) => {
|
else BDFDB.LibraryRequires.fs.readFile(source, "base64", (error, body) => {
|
||||||
if (error) BDFDB.NotificationUtils.toast("Could not fetch file. Please make sure the file exists.", {type: "danger"});
|
if (error) BDFDB.NotificationUtils.toast("Could not fetch file. Please make sure the file exists.", {type: "danger"});
|
||||||
else return successSavedAudio({category, sound, source: `data:audio/mpeg;base64,${btoa(body)}`});
|
else return successSavedAudio({category, sound, source: `data:audio/mpeg;base64,${body}`});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
children: BDFDB.LanguageUtils.LanguageStrings.SAVE
|
children: BDFDB.LanguageUtils.LanguageStrings.SAVE
|
||||||
|
|
Loading…
Reference in New Issue