aboutsummaryrefslogtreecommitdiff
path: root/src/Tomato/Validate.hs
blob: 0afc4b55e68a034cbfeaa4b96d74b8c9a2ee483f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Tomato.Validate
    ( isTomato
    ) where

import RIO

import Data.Message (InMessage (..))


isTomato :: InMessage -> Bool
isTomato m =
    not (hasAttach m) &&
    groupId m == "87220147" && 
    isUser m &&
    text m == "tomato"