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.7.tar.gz
md5=6bb91cdc5cd1b5958144faf9b4ae27c3
sha512=40fe8bdf5389fdb85869e41c24dbbbaafb8f07d026fcb7db2c2a94c1072a6d47a00708b0b0909e509b40325481198e6e45a4a205c92e090bf47eeccd4fbf99ab

doc/calculon/Calculon/Plugin_social/index.html

Module Calculon.Plugin_socialSource

Social: keeps a register "nick -> informations" up-to-date. The type contact can be extended to store new informations.

One must then extend the function contacts_of_json and json_of_contact to handle the new fields (and deal with the case where we import old JSON values that don't have the new fields, e.g. by using a default value).

The data stored in the contacts base are usually automatically updated by callbacks defined in Social (thanks to Signal.on).

Sourcetype to_tell = {
  1. from : string;
  2. on_channel : string;
  3. msg : string;
  4. tell_after : float option;
    (*

    optional; not before this deadline (UTC)

    *)
}
Sourcetype contact = {
  1. last_seen : float;
  2. to_tell : to_tell list;
  3. ignore_user : bool;
}
Sourcetype state
Sourceval data : state -> string -> contact
Sourceval set_data : state -> ?force_sync:bool -> string -> contact -> unit
Sourceval plugin : Plugin.t
OCaml

Innovation. Community. Security.