1KGB-ADD-PROJECT(1)    User Contributed Perl Documentation   KGB-ADD-PROJECT(1)
2
3
4

NAME

6       kgb-add-project - helper script for adding new projects to kgb-bot
7       configuration file
8

SYNOPSIS

10       kgb-add-project [--file configfile] [--dir configdir] [--net|--networks
11       ircnetwork] [--save|--write] project-id ircchannel password
12

DESCRIPTION

14       kgb-add-project allows one to add new projects to kgb-bot's
15       configuration file from the command line. It writes the new config to
16       stdout unless --save|--write is given.
17

ARGUMENTS

19       --file configfile
20           Optional. Defaults to /etc/kgb-bot/kgb.conf.
21
22       --dir configdir
23           Optional. Defaults to /etc/kgb-bot/kgb.conf.d/.  Used for writing
24           config snippets for projects with --save|--write.
25
26       --net|network ircnetwork
27           Optional. Defaults to oftc. Needs to be in the networks section of
28           the configuration file.
29
30       --save|--write
31           Optional. Write new config back to file instead of stdout.
32
33       project-id
34           project-id to be added.
35
36       irchannel
37           IRC channel where the new project sends its messages. If the
38           channel doesn't start with a character denoting IRC channel
39           ("#&+"), then a hash sign is prepended.
40
41       password
42           Password for the new project.
43

EXAMPLE

45       kgb-add-project my-project \#projectchannel RudFiarced0
46

CAVEATS

48kgb-add-project sorts the top-level sections of the configuration
49           file in a fixed order and re-orders the subsections alphabetically.
50
51       •   The output of kgb-add-project does not contain the comments that
52           were present in the source configuration file.
53

SEE ALSO

55       App::KGB
56       kgb-bot(1)
57
59       Copyright (C) 2012 Damyan Ivanov
60
61       This program is free software; you can redistribute it and/or modify it
62       under the terms of the GNU General Public License as published by the
63       Free Software Foundation; either version 2 of the License, or (at your
64       option) any later version.
65
66       This program is distributed in the hope that it will be useful, but
67       WITHOUT ANY WARRANTY; without even the implied warranty of
68       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
69       General Public License for more details.
70
71       You should have received a copy of the GNU General Public License along
72       with this program; if not, write to the Free Software Foundation, Inc.,
73       51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
74
75
76
77perl v5.34.0                      2022-01-20                KGB-ADD-PROJECT(1)
Impressum