aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-06-15 13:12:37 +0200
committerTom Smeding <tom@tomsmeding.com>2022-06-15 13:12:37 +0200
commitc8911057904e16aac53652311d0a131491b413a0 (patch)
tree5c877e31fe3f212c25e6b06bf7de6f075de97f6c /src
parent3f5b3415ac1d15beccafc5be3f62a3d39de27557 (diff)
Less logging
Diffstat (limited to 'src')
-rw-r--r--src/IRC.hs3
-rw-r--r--src/Main.hs1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/IRC.hs b/src/IRC.hs
index 36cb1c3..7e78c50 100644
--- a/src/IRC.hs
+++ b/src/IRC.hs
@@ -20,7 +20,7 @@ connectIRC commandDetect msgFun = do
& username .~ T.pack "yahb2"
& realname .~ T.pack "Bot operated by tomsmeding"
& password .~ Just (T.pack (trim pass))
- & logfunc .~ stdoutLogger
+ & logfunc .~ noopLogger
let cfg = defaultInstanceConfig (T.pack "yahb2")
& handlers .~
@@ -48,6 +48,7 @@ noticeHandler = EventHandler
-> Just ()
_ -> Nothing)
(\_ () -> do
+ liftIO $ putStrLn "Identification confirmation received, joining channel"
send $ Join (T.pack "#haskell"))
privmsgHandler :: (Text -> Bool) -> (Text -> IO [Text]) -> EventHandler s
diff --git a/src/Main.hs b/src/Main.hs
index cc4fda2..88a7259 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -28,6 +28,7 @@ mainIRC = do
connectIRC
(\t -> T.take 2 t == T.pack "% ")
(\recvmsg -> do
+ putStrLn $ "Responding to " ++ T.unpack recvmsg
ghci <- takeMVar ghcivar
(ghci', msgs) <- runInGhci ghci (T.drop 2 recvmsg)
putMVar ghcivar ghci'