package calculon

  1. Overview
  2. Docs
module I : Irc_client.CLIENT with type 'a Io.t = 'a Lwt.t
type connection = I.connection_t
val connection : connection
val init : unit Lwt.t
val exit : unit Lwt.t
val send_exit : unit -> unit
val messages : Msg.t Signal.t
val privmsg : privmsg Signal.t
val line_cut_threshold : int Stdlib.ref

Above !line_cut_threshold, multi-line messages are cut with "..."

val send_privmsg_l : target:string -> messages:string list -> unit Lwt.t
val send_privmsg_l_nolimit : ?delay:float -> target:string -> messages:string list -> unit -> unit Lwt.t

Version of send_privmsg_l that does not enforce cut threshold.

  • parameter delay

    optional delay between each sent message

val send_privmsg : target:string -> message:string -> unit Lwt.t

Helper for sending messages, splitting lines, etc.

val send_notice_l : target:string -> messages:string list -> unit Lwt.t
val send_notice : target:string -> message:string -> unit Lwt.t

Helper for sending notices, splitting lines, etc.

val send_join : channel:string -> unit Lwt.t
val send_part : channel:string -> unit Lwt.t
val talk : target:string -> Talk.t -> unit Lwt.t