|
|
|
|
|
by e12e
21 days ago
|
|
Seems overly complicated if the goal was a "simpler fortune" - a self-contained shell-script is perfectly capable of echoing random lines (I should know, I had one for generating email signatures). On the other hand, if all one wants is a set of fortune cookies - there's no need for the new client - fortune-mod exists: https://www.shlomifish.org/open-source/projects/fortune-mod/ |
|
I would probably not bother with the built-in cookies - if anything - have an option to "seed" ~/.config/friend/fortunes.txt or whatever is the proper xdg path.
https://docs.rs/crate/friend/0.1.0/source/src/main.rs