File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11{-# LANGUAGE OverloadedStrings #-}
22{-# LANGUAGE QuasiQuotes #-}
3- {-# LANGUAGE TupleSections #-}
43
54module Bot.CustomCommand
65 ( addCustomCommand
@@ -203,9 +202,9 @@ expandCustomCommandVars Message { messageSender = sender
203202 ]
204203 case code of
205204 Left msg -> return $ Left (show msg)
206- Right (_, code') -> do
205+ Right (_, code') ->
207206 return $
208- Right customCommand {customCommandMessage = expandVars vars code'}
207+ Right customCommand {customCommandMessage = expandVars vars code'}
209208
210209bumpCustomCommandTimes :: CustomCommand -> CustomCommand
211210bumpCustomCommandTimes customCommand =
@@ -225,7 +224,7 @@ dispatchCustomCommand =
225224 ignoreNothing $
226225 transR getCompose $
227226 dupLiftR expandCustomCommandVars $
228- replyLeft $ cmapR customCommandMessage $ sayMessage
227+ replyLeft $ cmapR customCommandMessage sayMessage
229228 where
230229 f :: Functor m => (a , m b ) -> m (a , b )
231230 f = uncurry $ fmap . (,)
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ startPeriodicTimer dispatchCommand channel eid =
107107 pt'
108108
109109startPeriodicCommands ::
110- Channel -> ( Reaction Message (Command T. Text) ) -> Effect ()
110+ Channel -> Reaction Message (Command T. Text ) -> Effect ()
111111startPeriodicCommands channel dispatchCommand = do
112112 eids <- (entityId <$> ) <$> selectEntities (Proxy :: Proxy PeriodicTimer ) All
113113 for_ eids (startPeriodicTimer dispatchCommand channel)
You can’t perform that action at this time.
0 commit comments