package calculon
Library for writing IRC bots in OCaml and a collection of plugins
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.8.tar.gz
md5=4d34a4d99816effb06954ea283be0e5b
sha512=b9ec29bc0fc40774075b528524bd191b4dde013465805499b6f49b9dd070b404b34364c77ef994f0bc01c9213f1f7c0a4aa749f84f8de55de810088499b29cfc
doc/calculon/Calculon/Config/index.html
Module Calculon.Config
Source
User-defined config
Type that cannot be built
Source
type t = {
server : string;
(*Address of the irc server
*)port : int;
(*Port of the server
*)username : string;
password : string option;
realname : string;
nick : string;
tls : bool;
sasl : bool;
channels : string list;
(*Channels to join after the connexion to the server
*)log_level : Logs.level;
(*Level of logging.
*)prefix : string;
(*prefix for commands
*)db_file : string;
(*Database path.
*)
}
Bot configuration.
Default configuration:
- server = "irc.libera.chat"
- port = 7000
- username = "calculon"
- realname = "calculon"
- password = None
- nick = "calculon"
- tls = true
- sasl = true
- channel = "#ocaml"
- irc_log = `None
- log_level = Logs.Warning
- prefix = "!"
- db_file = "calculon.db"
parse conf args
is the same as conf
, but some command line arguments can override its fields
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>