Hi everyone,
I’m very glad to announce the release of Ofortune! Ofortune is a fortune-teller written in OCaml. For those who didn’t know, fortune is a small NetBSD utility which, according to its man page, “prints a random, hopefully interesting, adage”.

Even though the goal of Ofortune is not to behave exactly like the legacy implementation, it shares most of the same command-line flags. By default, Ofortune searches fortune files in the directory /usr/share/games/fortune, but you may directly set the files used to pick a random fortune (with eventually an associated probability) by doing the following ofortune 60% quotations 40% funny-quotations.
I think that ofortune is one of those software programs that is moderately interesting unless you give it an excellent database to work with, so feel free to write your own cookie files. Your can for instance place it in your bashrc file to display a random quote each time you open a terminal.
Ofortune is written in dependance free OCaml > 5.4. To install it, just type (this will install an executable named ofortune in your path):
git clone https://git.sr.ht/~tim-ats-d/ofortune && cd ofortune && make native && install -T ofortune_unix.native /bin/ofortune
An online version compiled with js_of_ocaml is available at this address: Ofortune – Site de Tim.
Ofortune is distributed under the LGPL-3.0 license, and the source code is available here.