Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Bot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -681,15 +681,15 @@ dispatchPipe = Reaction dispatchPipe'
dispatchPipe' message@Message { messageSender = Sender {senderRoles = roles}
, messageContent = cmds
}
| not (any (`elem` coolRoles) roles) && length cmds > plebPipeLimit =
| null roles && length cmds > plebPipeLimit =
replyMessage $
fmap
(const
[qms|The length of the pipe is limited to {plebPipeLimit}.
Subscribe to increase the limit:
https://www.twitch.tv/products/tsoding|])
message
| any (`elem` coolRoles) roles && length cmds > pipeLimit =
| length cmds > pipeLimit =
replyMessage $
fmap
(const
Expand All @@ -701,7 +701,6 @@ dispatchPipe = Reaction dispatchPipe'
where
pipeLimit = 10
plebPipeLimit = 2
coolRoles = [tsodingTwitchedDiscordRole, TwitchSub] ++ authorityRoles

dispatchCommand :: Message (Command T.Text) -> Effect ()
dispatchCommand message = do
Expand Down