comment filter function
This commit is contained in:
parent
a455fd8ff7
commit
20da25f2bf
@ -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}`)
|
||||
|
Loading…
Reference in New Issue
Block a user