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

This commit is contained in:
kenobi 2023-11-18 18:22:11 +01:00
parent a455fd8ff7
commit 20da25f2bf
1 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,11 @@ export default class VoteController {
return await message.delete() 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 // subtracting the bots initial vote
const overOneVote = (vote.count - 1) >= 1 const overOneVote = (vote.count - 1) >= 1
logger.debug(`${vote.movie} : ${vote.count} -> above: ${overOneVote}`) logger.debug(`${vote.movie} : ${vote.count} -> above: ${overOneVote}`)