MANDERLBOT.CONF(5)
π MANDERLBOT.CONF π
bestie. sit down. we're configuring manderlbot.conf β the config file for the manderlbot IRC robot β and honestly? it's giving XML with main character energy πβ¨
β¨ NAME β¨
manderlbot.conf β configuring the manderlbot IRC robot π¦
πΈ DESCRIPTION πΈ
okay so manderlbot is an irc bot whose entire brand is saying idioties and doing lil searches on the internet for you π«. That's the vibe.
And just so we're clear: it is not an eggdrop bot. Not the same thing at all, no cap π
π CONFIGURATION π
The configuration file is an XML file containing the following elements. All of them, in order, here we go π
manderlbotβ the opening XML element of the configuration, and it contains the propertiesnameandcontroler. Thenamewill be shown as the bot's fullname. Thecontrollerproperty may contain one or more nicknames separated by spaces, and only those people will then be allowed to operate on the running bot from the irc channel. Also: every section below, unless it says otherwise, lives under this one. Nesting, we love to see it π«Άdictβ the section where you define the dictionary server you may want to use. Seedict.orgfor details about the protocol and the servers. Also be aware that you can run a dict server locally, and download some useful dictionaries. The properties to define here are the dict server host, the port, and the default dictionary to use πserverβ lets you define which serversmanderlbotshould connect to. The properties arehostandport. And you have to define aserversection for each and every irc server you wantmanderlbotto connect to. One per server. No skipping, no shortcuts πchannelβ the section where you configure themanderlbotbehaviour and name. This section has to be embedded in theserverone. And you have to define achannelsection per channel you wantmanderlbotto join on a server. Its properties arename(the channel name),botname(themanderlbotnickname on that channel), andbehaviours(a list of behaviours names you want to activate for that channel) πbehavioursβ will just contain your behaviour list. simple. iconic πbehaviourβ has to be found under thebehaviourssection. You define your behaviour here, and its properties arename(the name to use in the channel definition),action(defining what will be done), and one or more of the following pattern elements:pattern,op,to,optionandfrom. And get this β you can even prefix those properties withexl_to get an exclude pattern match (see[XRef to MATCH]). This element also contains data which will be used as theactionparameter, as explained in section[sub:Implemented-actions]π₯
π¦ BEHAVIOUR MATCHING π¦
So when you define a behaviour, what you actually want is for manderlbot to react to some event on the irc channel it's connected to, and take some action. And here's where we learn how to define the event you want it to react to π
Since on irc literally all you do is send lines of text, an event has to be text line oriented. So the manderlbot configuration lets you define some Regular Expressions http://www.regular-expressions.info to match the lines received. If the line is matched, the associated action is done β¨ And please note: the regexps are all considered case insensitive ones. periodt.
You can define some regexp on the following parts of the received line (which contains some server informations relative to the IRC protocol http://www.faqs.org/rfcs/rfc1459.html):
patternβ will try to match the user input, that is what your ordinary irc client will show you πopβ will try to match the irc operation. See the RFC for the complete list (opcan bekickorjoinfor example) πtoβ irc protocol field, will probably contain the channel name, so you won't need that... πoptionβ irc protocol option field πfromβ the nickname of the one who typed the current line, on the formnick!~user@host.domain.tldπ
And to make it even more powerful and readable, you can define the same patterns with an exl_ prefix β this will prevent the action from being taken if it matches. So you can define the parameters exl_pattern, exl_op, exl_to, exl_option and exl_from π«
And of course you can use any combination of the listed parameters, so you can be quite precise about what you want to react to. chef's kiss π
π IMPLEMENTED ACTIONS π
The action parameter of the behaviour configuration element defines the manderlbot behaviour on matching a line. Here is the list of provided actions you can use π
If you want manderlbot to take an action not described here, you will have to write some erlang code to teach him what you want! π
And heads up: the argument of the action is the xml data given enclosed in the behaviour element π¦
sendβ send the given argument as ifmanderlbothad typed it after the/meirc command β¨answerβ send the line prefixed with the sender name and a colon π¬blotoβ this will count the matched lines per user, and the first one obtaining 5 points has won the business loto game π° Just define your buzzwords set and make it a regexp!debian_fileβ will search the irc given file using the debian web site cgi. The argument is not used πdebian_pkgβ will search the irc given package using the debian web site cgi. The argument is not used π¦dictβ will ask your defined dict server for the given word. The argument may be the dictionary name to use in the query, but defaults to the'default'entry of thedictconfig element πgoogleβ will ask google for the rest of the irc line. The argument is not used πmuteβ mute will mute the bot, and you have to be a controler to use that. The argument is not used π€«pyramidβ pyramid is a game named after a french TV game π«π·. You have to make an irc fellow on that channel guess a world, in a given number or tries. The argument is not used πΊrandomβ will say one of the sentences listed in the arguments, randomly π² The sentences have to be separated by'%'signs.fortuneβ same behaviour asrandom, but this time the argument is the name of a traditionnal separate fortune file π₯reconfβ will ask the bot to re-read its configuration. It allows you to handle dynamically your configuration, no need to restart the bot, and irc control! But you have to be in the controler list to use this action πrejoinβ allows you to rejoin a channel (useful on kick, just add aop="kick"parameter to thebehaviourelement definition) πsayβ say will say the arguments π£οΈtimerβ will say the first argument, then wait for a random time, and say the other arguments β³ The args have to be separated by a'%'char.
π«Ά INTERACTING WITH THE RUNNING BOT, FROM IRC π«Ά
You can use the reconf and mute actions to control the bot from irc, and you define who can do that in the first configuration element, with the controler property π
π EXAMPLE π
Please see the given configuration file, in /etc/manderlbot/config.xml π
π HISTORY π
But why did we even write this software ? π€
Well, I wanted an irc bot to play with, in order to have it say some silly things automatically on answer to our own idioties. I did not want an eggdrop or whatever controlling channel bot. I saw that the manderlbot project existed, and I was already familiar with erlang development, so I began using it π§
The existing project was at an early stage of development, and I wanted the bot to do more and more things. So I wrote some code to make it fit my needs. And as the original authors would not consider my patches, I forked the project, keeping the name (they seemed not to work on their version at all), and hosting it on the TuxFamily services π
π AUTHORS π
manderlbot was written by Dimitri Fontaine <dim@tuxfamily.org> and Nicolas Niclausse <nico@niclux.org> π
aaaand that's the whole page bestie π this one dropped Avril 2004 and it's still living in our hearts β MANDERLBOT.CONF(5), slay, periodt β¨π
π¦ where this page comes from
- debian bookworm: manderlbot 0.9.3-1.1
- debian trixie: manderlbot 0.9.3-3
- ubuntu jammy: manderlbot 0.9.3-1.1
- ubuntu noble: manderlbot 0.9.3-2
- ubuntu questing: manderlbot 0.9.3-3
- ubuntu resolute: manderlbot 0.9.3-3build1
- ubuntu stonking: manderlbot 0.9.3-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms