1
음악에 대한 건너 뛰기 기능이있는 불협화음 봇을 만들고 있지만 누군가가 할 수 없게 만드는 방법을 알아 내지 못합니다. 투표를 여러 번 건너 뛰십시오. 너희들이 나를 도울 수 있다면불화 봇이 한 명으로부터 여러 표를 얻지 못하게하려면 어떻게해야합니까?
case "skip":
var server = servers[message.guild.id];
if(message.guild.members.get(message.author.id).roles.exists('name','Super Skip')){ // checks if the member has the super skip role
skipvotes = 0; // sets skipvotes back to 0
messagesend("Skipping Song")
server.dispatcher.end(); // skips song
message.delete(); // deletes message that sent the commmand
return;
}
skipvotes++ // increases the skipvotes
if(skipvotes != 5) { // checks if the number of skips is 5 or not
message.delete();
messagesend(5-skipvotes + " more vote(s) to skip the song") // sends the message saying how many more votes to skip the song
} else if(skipvotes === 5){
skipvotes = 0; // sets the number of skipvotes back to 0
if(server.dispatcher){
message.delete();
messagesend("Skipping song")
server.dispatcher.end(); // skips the song
}
}
break;
는 이미 배열에서 투표 한 사람들의