KGB-ADD-PROJECT(1p)
π KGB-ADD-PROJECT β¨
okay bestie, welcome to kgb-add-project β that's the User Contributed Perl Documentation section 1p, if you're keeping track (and you ARE keeping track, iykyk).
πΈ NAME πΈ
kgb-add-project β it's a lil helper script that adds brand new projects to your kgb-bot configuration file. that's it. that's the job. bestie behaviour honestly π«Ά
β¨ SYNOPSIS β¨
kgb-add-project [--file configfile] [--dir configdir] [--net|--networks
ircnetwork] [--save|--write] project-id ircchannel password
look at her. three positional args, a handful of flags, and all the power π
π DESCRIPTION π
so <pink>kgb-add-project</pink> lets you add new projects to <hotpink>kgb-bot</hotpink>'s configuration file straight from the command line. no opening files by hand, no vibes-based YAML editing, we're being responsible today.
important though, and I need you to hear me: it writes the new config to stdout unless you pass <purple>--save</purple>|<purple>--write</purple>. so it's giving "peek before you commit" energy. main character move honestly.
π ARGUMENTS π
one bullet per argument, no skips, we don't gatekeep here:
--file configfileβ optional bestie. defaults to/etc/kgb-bot/kgb.conf.--dir configdirβ optional. defaults to/etc/kgb-bot/kgb.conf.d/. this one's the spot for writing config snippets for projects when you've got--save|--writegoing on.--net|network ircnetworkβ optional. defaults tooftc. heads up: it needs to actually live in the<cyan>networks</cyan>section of the configuration file, or it's just a girl standing in front of a network that doesn't exist π--save|--writeβ optional. instead of dumping to stdout, it writes the new config back to the file. very "we're doing this for real" of you.project-idβ the project-id to be added. that's the whole thing.irchannelβ the IRC channel where your new project sends its messages. here's the cute lil detail: if the channel doesn't already start with a character denoting an IRC channel ("#&+"), then a hash sign gets prepended. so it's got your back. no stress. π¦passwordβ the password for the new project. guard it like your group chat screenshots π«£
π EXAMPLE π
go off:
kgb-add-project my-project \#projectchannel RudFiarced0
see how pretty. ate. π
π CAVEATS π
okay now the part where I have to be a real one. two things:
kgb-add-projectsorts the top-level sections of the configuration file in a fixed order and re-orders the subsections alphabetically. so if you had a beautiful hand-curated ordering situation going on⦠she's reorganising it. periodt.- the output of
kgb-add-projectdoes NOT contain the comments that were present in the source configuration file. your little# don't touch thisnotes? gone. sobbing. back them up if that's a problem for you π
π§ SEE ALSO π§
App::KGBkgb-bot(1)
go read them, they're both iconic in their own way β¨
π COPYRIGHT AND LICENSE π
Copyright (C) 2012 Damyan Ivanov
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
anyway that's the whole page, you're fully caught up π this gorgeous little manual was rendered by <pink>perl v5.40.1 on <lavender>2026-07-10, and it's genuinely giving. slay, read safe, and always check stdout before you --save. bye bestie!! πΈπ
π¦
π¦ where this page comes from
- ubuntu stonking: kgb-bot 1.62-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms