X-Git-Url: https://git.martlubbers.net/?p=cloogle-irc.git;a=blobdiff_plain;f=IRCBot.icl;h=0cd10228d816d185cd964f9ca7943df0026f52f7;hp=1dfee115582b2aef4bb850d37076e99e0d376aab;hb=93f0540991809d459cfc3061c88fc07d1cfc948c;hpb=ceec25a9ebb2fa231d68e58d05f77c449d7d7590 diff --git a/IRCBot.icl b/IRCBot.icl index 1dfee11..0cd1022 100644 --- a/IRCBot.icl +++ b/IRCBot.icl @@ -63,12 +63,12 @@ process chan acc state bot w //Recurse = process chan acc state bot w -send :: [String] TCP_DuplexChannel *World -> (MaybeErrorString (), TCP_DuplexChannel, *World) +send :: ![String] !TCP_DuplexChannel !*World -> (!MaybeErrorString (), !TCP_DuplexChannel, !*World) send [] chan w = (Ok (), chan, w) send [msg:msgs] {sChannel,rChannel} w -# (_, w) = sleep 250000 w # (rpt,i,sChannel,w) = send_MT TIMEOUT (toByteSeq msg) sChannel w | rpt <> TR_Success = (Error "Could not send message", {sChannel=sChannel,rChannel=rChannel}, w) +# (_, w) = sleep 500000 w = send msgs {sChannel=sChannel,rChannel=rChannel} w where sleep :: !Int !*World -> (!Int, *World)