init
This commit is contained in:
@ -43,7 +43,7 @@ module.exports = function(cmds){
|
||||
action : (bot,event,message)=>{
|
||||
const ss = message.text.replace('/','');
|
||||
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{
|
||||
return event.reply("Unknown Sound !");
|
||||
}
|
||||
|
Reference in New Issue
Block a user