Skip to content
Rayslava edited this page Nov 15, 2016 · 3 revisions

App uses plain ".ini"-like configuration format

[general]
tick_timeout=120000
[hub]
name=Hub1
[channel]
type=irc
direction=inout
name=IrcConnection
server=irc.freenode.net
port=6667
channel=chatsync
nickname=csb
[channel]
type=tox
name=ToxConnection
direction=inout
datafile=/tmp/toxdata

Supported directives

general

tick_timeout the time before two ticks in main loop in milliseconds. E.g. exit from application happens at the end of the tick. Defaults to 2 minutes.

Hub

name just internal hub name. Makes no sense actually

channel

type channel type — irc,tox,file

name channel name — internal connection name. Makes no sense either

direction channel direction — input,output,inout. Messages from inputs are directed into outputs.

Tox channel directives

datafile path to file with tox data to keep

nickname bot nickname

ipv6 ipv6 enabled or not

Bootstrapping parameters: bootstrap_address, bootstrap_port, bootstrap_key can be borrowed from tox wiki

Irc channel options

server , port irc server and port to connect to

channel channel name without leading #

nickname bot nickname

Clone this wiki locally