Commit bcac7887 authored by Nicolas Lenz's avatar Nicolas Lenz ❄️
Browse files

Remove @ part in directMock

parent 260fc78b
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -51,7 +51,8 @@ directMock = UpdateParser f where
        message <- Telegram.updateMessage update
        txt' <- Telegram.messageText message
        let txt = if T.head txt' == '/' then T.tail txt' else txt'
        let (command:body') = T.splitOn " " txt
        let (command':body') = T.splitOn " " txt
        let (command, _) = T.breakOn "@" command
        let body = T.unwords body'
        let styleNames = T.splitOn "|" . T.toLower $ command
        if length styleNames > 5 then