jellyfin-discord-bot/server/helper/messageIdentifiers.ts

12 lines
399 B
TypeScript
Raw Normal View History

2023-06-25 01:57:30 +02:00
import { Message } from "discord.js";
export function messageIsVoteMessage(msg: Message): boolean {
2023-06-25 02:20:34 +02:00
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]")
2023-06-25 01:57:30 +02:00
}