added sounds
This commit is contained in:
@@ -149,4 +149,4 @@ app.listen(PORT, ()=>{
|
|||||||
console.log(`Server running on port ${PORT}`);
|
console.log(`Server running on port ${PORT}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
export{ getApiUrls };
|
export{ getApiUrls };
|
||||||
|
@@ -146,6 +146,38 @@ class AVoice{
|
|||||||
}, 150);
|
}, 150);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "join":{
|
||||||
|
const voicy = new AVoice("triangle", 600,.1);
|
||||||
|
voicy.play();
|
||||||
|
setTimeout(_=>{
|
||||||
|
voicy.freq=800;
|
||||||
|
}, 75);
|
||||||
|
setTimeout(_=>{
|
||||||
|
voicy.freq=1000;
|
||||||
|
}, 150);
|
||||||
|
setTimeout(_=>{
|
||||||
|
voicy.stop();
|
||||||
|
}, 200);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "leave":{
|
||||||
|
const voicy = new AVoice("triangle", 850,.5);
|
||||||
|
voicy.play();
|
||||||
|
setTimeout(_=>{
|
||||||
|
voicy.freq=700;
|
||||||
|
}, 100);
|
||||||
|
setTimeout(_=>{
|
||||||
|
voicy.stop();
|
||||||
|
voicy.freq=400;
|
||||||
|
}, 180);
|
||||||
|
setTimeout(_=>{
|
||||||
|
voicy.play();
|
||||||
|
}, 200);
|
||||||
|
setTimeout(_=>{
|
||||||
|
voicy.stop();
|
||||||
|
}, 250);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static get sounds(){
|
static get sounds(){
|
||||||
|
@@ -595,6 +595,9 @@ class Channel extends SnowFlake{
|
|||||||
await Member.new(memb,this.guild);
|
await Member.new(memb,this.guild);
|
||||||
}
|
}
|
||||||
this.updateVoiceUsers();
|
this.updateVoiceUsers();
|
||||||
|
if(this.voice===this.localuser.currentVoice){
|
||||||
|
AVoice.noises("join");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async updateVoiceUsers(){
|
async updateVoiceUsers(){
|
||||||
|
Reference in New Issue
Block a user