commit c50e33f6ec8e6895fe98991fc6aa46fd99b8f8f8
parent e5930bed6598d973ba680bc1229409d19819ed86
Author: noodle <noodle@pastanoggin.com>
Date: Sun, 15 Jun 2025 16:34:39 +0300
remove the leading # from -j's argument
it confuses /etc/rc.conf.local. updated and cleaned up the man page too
Diffstat:
2 files changed, 11 insertions(+), 16 deletions(-)
diff --git a/mata_bot.pl b/mata_bot.pl
@@ -33,7 +33,7 @@ my %subbuffer;
# process args
getopts('tlH:b:h:j:p:q:', \my %opts);
$ball_path = $opts{'b'} if ($opts{'b'});
-$chan = $opts{'j'} if ($opts{'j'});
+$chan = "#$opts{'j'}" if ($opts{'j'});
$hellos_path = $opts{'H'} if ($opts{'H'});
$host = $opts{'h'} if ($opts{'h'});
$logging = 1 if ($opts{'l'});
diff --git a/matabot.8 b/matabot.8
@@ -28,29 +28,30 @@ started as a daemon via an rc.d script.
The options are as follows:
.Bl -tag -width Ds
.It Fl H Ar path
-load the hellos file from
+Load the hellos file from
.Ar path
.Po default: Pa $PREFIX/share/matabot/hellos Pc Ns .
.It Fl b Ar path
-load the 8ball file from
+Load the 8ball file from
.Ar path
.Po default: Pa $PREFIX/share/matabot/ball Pc Ns .
.It Fl h Ar host
-connect to
+Connect to
.Ar host
(default: localhost).
.It Fl j Ar join
-join
+Join
.Ar channel
-(default: #testmatabot).
+(default: testmatabot).
+Don't include the leading #.
.It Fl l
Turn on logging to stdout.
.It Fl p Ar port
-connect to
+Connect to
.Ar port
(default: 6667).
.It Fl q Ar path
-load the quotes file from
+Load the quotes file from
.Ar path
.Po default: Pa $PREFIX/share/matabot/quotes Pc Ns .
.It Fl t
@@ -84,14 +85,8 @@ Stay prayed up!!
.It wassup mata_bot?
Ask him what he's up to.
.It mata_bot, hru?
-ask him how he's doin.
+Ask him how he's doin.
.El
-.Sh ENVIRONMENT
-.Bl -tag -width Ds
-.It Ev PREFIX
-used to find the ball and quotes files under
-.Pa /share/matabot/
-.Po default: Pa /usr/local/ Pc Ns .
.Sh FILES
.Bl -tag -width Ds
.It Pa /etc/rc.d/matabot
@@ -101,7 +96,7 @@ OpenBSD rc script for running matabot as a service.
keep the ratio when adding new lines as the answer is chosen randomly from the
file.
.It Pa /usr/local/share/matabot/quotes
-random quotes mostly from the https://analognowhere.com comic.
+Random quotes; mostly from the https://analognowhere.com comic.
.El
.
.Sh EXIT STATUS