comment filter function
All checks were successful
Compile the repository / compile (pull_request) Successful in 39s
Run unit tests / test (pull_request) Successful in 14s

This commit is contained in:
kenobi 2023-11-18 18:22:11 +01:00
parent a455fd8ff7
commit 20da25f2bf

View File

@ -64,7 +64,11 @@ export default class VoteController {
return await message.delete()
}
public hasAtLeastOneVote(vote: Vote): boolean {
/**
* returns true if a Vote object contains at least one vote
* @param {Vote} vote
*/
private hasAtLeastOneVote(vote: Vote): boolean {
// subtracting the bots initial vote
const overOneVote = (vote.count - 1) >= 1
logger.debug(`${vote.movie} : ${vote.count} -> above: ${overOneVote}`)