# -*- coding: utf-8; mode: python -*- include("secrets") info["owner"] = "Debian-kgb" info["group"] = "adm" info["mode"] = 0660 header("Configuration du bot KGB\nIl annonce les commits git sur les channels IRC.") @# vim: filetype=yaml @--- @soap: @ server_addr: 0.0.0.0 @ server_port: 5391 @ service_name: KGB @queue_limit: 150 @log_file: "/var/log/kgb-bot.log" @include: "/etc/kgb-bot/kgb.conf.d" @repositories: @ # just a name to identify it @ crans: @ # needs to be the same on the client out(" password: %s" % (secrets.kgb_passwords["crans"],)) @ # private repositories aren't announced to broadcast channels @ # private: yes for depot in ["ca", "note", "bots", "bde", "fortunes"]: out(" %s:" % (depot,)) out(" password: %s" % (secrets.kgb_passwords[depot],)) @# Some witty answer for people that talk to the bot @smart_answers: @ - "I wont speak with you!" @ - "Do not disturb!" @ - "Leave me alone, I am buzy!" @ - "I'm in ur channel, watching ur commits!" @# Admins are allowed some special !commands (currently only !version) @admins: @ - PEB!becue@zamok.crans.org @networks: @ crans: @ nick: KGB @ ircname: KGB bot @ username: kgb @ password: ~ @ nickserv_password: ~ @ server: irc.crans.org @ port: 6667 @channels: @# a broadcast channel @# - name: '#flood' @# network: crans @# broadcast: yes @# a channel, tied to one or several repositories @ - name: '#roots' @ network: crans @ repos: @ - crans @ # Can also be set per-channel @ #smart_answers: @ # - "I'm in ur channel, watching ur commits!" @ # - "I am not listening" @ # - "Shut up! I am buzy watching you." @ - name: '#ca' @ network: crans @ repos: @ - ca @ - name: '#note' @ network: crans @ repos: @ - note @ - bde @ - name: '#bot' @ network: crans @ repos: @ - bots @ - name: '#crans' @ network: crans @ repos: @ - fortunes @pid_dir: /var/run/kgb-bot @# anything less is rejected @min_protocol_ver: 1 @# default colors: @# colors: @# repository: bold @# revision: bold @# author: green @# branch: brown @# module: purple @# path: teal @# addition: green @# modification: teal @# deletion: "bold red" @# replacement: reverse @# prop_change: underline @# web: silver @# you can combine them like "bold red" (ouch!) @# available colors: black, navy, green, red, brown, purple, orange, yellow, @# lime, teal, aqua, blue, fuchsia, gray, silver, white @# available modifiers: bold underline reverse