mata_bot

some cheeky bot for #unix_surrealism
git clone https://git.pastanoggin.com/mata_bot.git
Log | Files | Refs | README | LICENSE

commit b73dcbe95ef4d2048dab4178e615b15aa06a8564
parent a199d22b47feb506d546b9ba5821830dc2b8c2f0
Author: noodle <noodle@pastanoggin.com>
Date:   Tue, 17 Jun 2025 17:16:05 +0300

matabot.8: revamp and add missing info

Diffstat:
Mmatabot.8 | 72++++++++++++++++++++++++++++++++++++++++++------------------------------
1 file changed, 42 insertions(+), 30 deletions(-)

diff --git a/matabot.8 b/matabot.8 @@ -30,11 +30,11 @@ The options are as follows: .It Fl H Ar path Load the hellos file from .Ar path -.Po default: Pa $PREFIX/share/matabot/hellos Pc Ns . +.Po default: Pa /usr/local/share/matabot/hellos Pc Ns . .It Fl b Ar path Load the 8ball file from .Ar path -.Po default: Pa $PREFIX/share/matabot/ball Pc Ns . +.Po default: Pa /usr/local/share/matabot/ball Pc Ns . .It Fl h Ar host Connect to .Ar host @@ -53,43 +53,48 @@ Connect to .It Fl q Ar path Load the quotes file from .Ar path -.Po default: Pa $PREFIX/share/matabot/quotes Pc Ns . +.Po default: Pa /usr/local/share/matabot/quotes Pc Ns . .It Fl t Turn on TLS. .El .Sh COMMANDS -Bot can do some tricks (non-exhaustive list. -he's kinda flexible so just speak to him :3): +Bot can do some tricks (non-exhaustive, or it won't be funny): .Bl -tag -width Ds -.It ...mata_bot... -Says something! This boy talks back!? -.It mata_bot, What doth life? or mata_bot, What doth life? -Answers your burning questions... -(can't hear you if you don't -.Sq \&? -him). -.It ...http://what.ever/idk#lol... or ...https://what.ever/idk#lol... -Reads out the website title or content-type for you. +.It s/hackers/wizards/ +He corrects you. .It ...watch?=SOMEID... -Reads out the youtube video title for you. -(Make sure that the char after end of +He reads out youtube video titles for you. +(Make sure that the character after the end of .Sq SOMEID -is outside the range of valid characters for youtube video ID's okay?). +is outside the range of valid characters for a youtube video ID, okay?). +.It ...http://what.ever/idk#lol... or ...https://what.ever/idk#lol... +He reads out website titles or the content-type for you. .It mata_bot ...${number1}d${number2}... -Rolls some ${number1} of ${number2}-sided dice. +Ask him to roll ${number1} of ${number2}-sided dice. He's a dungeon master too!! -.It mata_bot, good boy! (or boi, girl, bot). -Praise your future master. -.It thank you mata_bot!! -Thank your future master. -.It hi, mata_bot! -Say hi to the boy .It mata_bot: *pray* Stay prayed up!! -.It wassup mata_bot? -Ask him what he's up to. +.It mata_bot I LOVE U!!! +Love the boy. +.It thank you mata_bot!! +Thank your future master. +.It mata_bot: Who's the good boy?? (or boi, girl, bot, etc.). +Praise your future master. +.It ...mata_bot... +Mention him! This boy talks back!? .It mata_bot, hru? Ask him how he's doin. +.It wassup mata_bot? +Ask him what he's up to. +.It mata_bot, good boy! (or boi, girl, bot, etc.). +Praise your future master. +.It hi, mata_bot! +Say hi to the boy +.It mata_bot, What doth life? +Ask him your burning questions... +(He can't hear you if you don't +.Sq \&? +him :c). .El .Sh FILES .Bl -tag -width Ds @@ -100,8 +105,12 @@ OpenBSD rc script for running matabot as a service. has 10 answers for positive, negative, and ambigious each; keep the ratio when adding new lines as the answer is chosen randomly from the file. +.It Pa /usr/local/share/matabot/hellos +Random greetings. .It Pa /usr/local/share/matabot/quotes -Random quotes; mostly from the https://analognowhere.com comic. +Random quotes; mostly from the +.Lk https://analognowhere.com +comic. .El . .Sh EXIT STATUS @@ -111,15 +120,18 @@ Random quotes; mostly from the https://analognowhere.com comic. Typical invocation .Po use these flags in your Pa /etc/rc.conf.local Pc Ns : .Pp -.Dl $ matabot -tlh irc.server.tld -j #analognowhere -p 6697 +.Dl $ matabot -th irc.server.tld -j #analognowhere -p 6697 .Pp -Test on a local ircd (without TLS): +Test on a local ircd with logging turned on. +(No TLS): .Pp .Dl $ matabot -l . .Sh SEE ALSO .Xr perl 1 , -.Xr IO::Socket 3p +.Xr HTTP::Tiny 3p , +.Xr IO::Socket 3p , +.Xr IO::Socket::SSL 3p . .Sh STANDARDS .Bl -item