package calculon

  1. Overview
  2. Docs
Library for writing IRC bots in OCaml and a collection of plugins

Install

Dune Dependency

Authors

Maintainers

Sources

v0.5.tar.gz
md5=831b8d45ac76bfa1118e7e954bfd4474
sha512=b7e856d88a2c34f2f7bb2c5c8f416ef99e29ccd46a9016e5f7fefc838df6fcb5daffd45170b606562a2ba15e910421884071e6e19fa90b23f412f45d85cc7d5a

doc/calculon.extras/Calculon_extras/Irclog/index.html

Module Calculon_extras.IrclogSource

Small Parser for IRC Logs

Sourcetype 'a sequence = ('a -> unit) -> unit
Sourcetype log_record = {
  1. author : string;
  2. time : string;
  3. msg : string;
}

One message in a IRC log

Sourceval re_irssi : Re.re

Irssi logs

Sourceval re_weechat : Re.re

Weechat logs

Sourcetype fmt =
  1. | Irssi
  2. | Weechat
Sourceval fmt_of_string : string -> fmt
Sourceval string_of_fmt : fmt -> string
Sourceval fmt_l : string list
Sourceval parse_record : fmt -> string -> log_record option

Parse one line of log

Sourceval string_of_record : log_record -> string

Print record

Sourceval pp_record : log_record CCFormat.printer
Sourceval iter_file : fmt -> string -> log_record sequence
Sourceval iter_dir : fmt -> string -> (string * log_record) sequence
Sourceval iter_file_or_dir : fmt -> string -> log_record sequence
Sourceval norm_author : string -> string

Normalize author's name

OCaml

Innovation. Community. Security.