feat/40-reroll-on-disinterest #54
@ -64,7 +64,11 @@ export default class VoteController {
|
||||
return await message.delete()
|
||||
}
|
||||
|
||||
magnetotail marked this conversation as resolved
Outdated
|
||||
public hasAtLeastOneVote(vote: Vote): boolean {
|
||||
/**
|
||||
magnetotail marked this conversation as resolved
Outdated
magnetotail
commented
threshold seems to be a magic number threshold seems to be a magic number
magnetotail
commented
Or rename method to "hasAtLeastOneVote" Or rename method to "hasAtLeastOneVote"
kenobi
commented
296a490e935cbdb79b70d73d2df9bc12a5774c53
kenobi
commented
done done
|
||||
* returns true if a Vote object contains at least one vote
|
||||
* @param {Vote} vote
|
||||
*/
|
||||
private hasAtLeastOneVote(vote: Vote): boolean {
|
||||
// subtracting the bots initial vote
|
||||
magnetotail marked this conversation as resolved
Outdated
magnetotail
commented
comment is misleading, voteinfo is also used to get the eventid and eventdate in line 93 comment is misleading, voteinfo is also used to get the eventid and eventdate in line 93
kenobi
commented
119343c916b023a926e534575ae803cdec5b9594
|
||||
const overOneVote = (vote.count - 1) >= 1
|
||||
logger.debug(`${vote.movie} : ${vote.count} -> above: ${overOneVote}`)
|
||||
|
Loading…
Reference in New Issue
Block a user
above WHAT threshold? What does it do??
20da25f2bf
Mit einem Kommentar versehen und entsprechend deines vorschlags umbenannt