This commit is contained in:
Cedric Hoelzl 2019-12-25 16:52:23 +01:00
parent d0bd23fee2
commit 6451b61f19

View File

@ -43,7 +43,7 @@ module.exports = function(cmds){
action : (bot,event,message)=>{ action : (bot,event,message)=>{
const ss = message.text.replace('/',''); const ss = message.text.replace('/','');
if(sound_list[ss] != undefined){ if(sound_list[ss] != undefined){
return event.replyWithVoice({source:'./sounds/'+ sound_list[ss].file}); return event.replyWithVoice({source:__dirname+'/sounds/'+ sound_list[ss].file});
}else{ }else{
return event.reply("Unknown Sound !"); return event.reply("Unknown Sound !");
} }