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