feat/40-reroll-on-disinterest #54
@ -1,6 +1,11 @@
|
||||
import { Message } from "discord.js";
|
||||
|
||||
export function messageIsVoteMessage(msg: Message): boolean {
|
||||
magnetotail marked this conversation as resolved
Outdated
|
||||
return msg.content.includes('[Abstimmung]')
|
||||
|
||||
return msg.cleanContent.includes('[Abstimmung]')
|
||||
}
|
||||
export function messageIsInitialAnnouncement(msg: Message): boolean {
|
||||
return msg.cleanContent.includes("[initial]")
|
||||
}
|
||||
export function messageIsVoteEndedMessage(msg: Message): boolean {
|
||||
return msg.cleanContent.includes("[Abstimmung beendet]")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user
Would like an enum of message types and a method with input message and output array of message types for possible messages with multiple things.
Also maybe remove message at start of function names to improve visibility by shorter function name. "isVoteMessage(message)" is precise and readable enough