From e3e755011d4a4374a9df16ca5ddd76679ec7365b Mon Sep 17 00:00:00 2001 From: kenobi Date: Sun, 25 Jun 2023 01:57:30 +0200 Subject: [PATCH] add messageIdentifier helper --- server/helper/messageIdentifiers.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 server/helper/messageIdentifiers.ts diff --git a/server/helper/messageIdentifiers.ts b/server/helper/messageIdentifiers.ts new file mode 100644 index 0000000..1a570ba --- /dev/null +++ b/server/helper/messageIdentifiers.ts @@ -0,0 +1,6 @@ +import { Message } from "discord.js"; + +export function messageIsVoteMessage(msg: Message): boolean { + return msg.content.includes('[Abstimmung]') + +}