NAME

kgb-bot - an IRC bot helping collaborative work

SYNOPSYS

kgb-bot [--config file] [--foreground]

OPTIONS

--config file

Specify configuration file to load. Default is /etc/kgb/kgb.conf.

--foreground

Do not detach from console, print log messages to STDERR and do not become a daemon, useful for debugging.

detect_common_dir changes

Given an arrayref of changes (instances of APP::KGB::Change), detects the longest path that is common to all of them. All the changes' paths are trimmed from the common part.

Example:

foo/b
foo/x
foo/bar/a

would return 'foo' and the paths would be trimmed to

b
x
bar/a