feat/40-reroll-on-disinterest #54
6
server/helper/messageIdentifiers.ts
Normal file
6
server/helper/messageIdentifiers.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { Message } from "discord.js";
|
||||
|
||||
export function messageIsVoteMessage(msg: Message): boolean {
|
||||
magnetotail marked this conversation as resolved
Outdated
|
||||
return msg.content.includes('[Abstimmung]')
|
||||
|
||||
}
|
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