package calculon

  1. Overview
  2. Docs

Module Plugin.SetSource

Collection of Plugins

Sourcetype t
Sourceval create : ?cmd_help:bool -> Config.t -> plugin list -> (t, string) Result.result Lwt.t

Create a collection of plugins, loading the state, initializing them.

  • parameter cmd_help

    if true, adds a "help" command.

Sourceval commands : t -> Command.t list

Corresponding list of commands

Sourceval on_msg_l : t -> (Core.t -> Irc_message.t -> unit Lwt.t) list

List of callbacks called on each message

Sourceval save : t -> unit Lwt.t

Save state to disk

Sourceval reload : t -> (unit, string) Result.result Lwt.t

Reload state from disk

Sourceval stop : ?save:bool -> t -> unit Lwt.t

Stop all plugins

  • parameter save

    if true, will call save first (default true)

OCaml

Innovation. Community. Security.