package calculon
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_social
Source
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
).
Source
type to_tell = {
from : string;
on_channel : string;
msg : string;
tell_after : float option;
(*optional; not before this deadline (UTC)
*)
}
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>