failsafes and more notification sounds

This commit is contained in:
MathMan05 2024-06-21 22:22:20 -05:00
parent ae43fd497a
commit 95f6bc202d
4 changed files with 78 additions and 11 deletions

View file

@ -509,13 +509,7 @@ class channel{
return message.author.username+" > "+this.owner.properties.name+" > "+this.name;
}
notify(message){
{
const voicy=new voice("sin",800);
voicy.play()
setTimeout(_=>{voicy.freq=1000},50);
setTimeout(_=>{voicy.freq=1300},100);
setTimeout(_=>{voicy.stop()},150);
}
voice.noises(voice.getNotificationSound());
if (!("Notification" in window)) {
} else if (Notification.permission === "granted") {