More fixes
parent
d5b009b186
commit
1c3291b182
|
@ -968,8 +968,8 @@ export default class Root extends Route {
|
|||
confirmationEmbed.addField('Results', `**Total:** ${total.length}\n**Yea:** ${yea}\n**Nay:** ${nay}\n**Present:** ${present}\n**Absent:** ${absent}`);
|
||||
await this.directorLogs.createMessage({ embed: confirmationEmbed });
|
||||
|
||||
const excludingYea = nay + present + absent;
|
||||
if (yea > excludingYea) {
|
||||
const totalDirectors = yea + nay + present + absent;
|
||||
if (yea / totalDirectors >= 0.6) {
|
||||
const resolutionEmbed = this.genEmbed(
|
||||
motion.oID,
|
||||
'res',
|
||||
|
|
|
@ -49,6 +49,7 @@ export default class MessageReactionAdd extends Event {
|
|||
...proc.results,
|
||||
yea: votes.yea,
|
||||
},
|
||||
votedDirectors: [...proc.votedDirectors, reactor.id],
|
||||
});
|
||||
break;
|
||||
|
||||
|
@ -59,6 +60,7 @@ export default class MessageReactionAdd extends Event {
|
|||
...proc.results,
|
||||
nay: votes.nay,
|
||||
},
|
||||
votedDirectors: [...proc.votedDirectors, reactor.id],
|
||||
});
|
||||
break;
|
||||
|
||||
|
@ -69,6 +71,7 @@ export default class MessageReactionAdd extends Event {
|
|||
...proc.results,
|
||||
present: votes.present,
|
||||
},
|
||||
votedDirectors: [...proc.votedDirectors, reactor.id],
|
||||
});
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue