Output fortunes by using Ollama and the text generation model selected with llm-manager
.
fortunecraft
has a very different selection of fortunes compared to the good old fortune
program.
One of the goals for this utility is to be a proof of concept for an Arch Linux package that depends on a model that in turn depends on Ollama.
Requires an Ollama server to be up and running, and the selected model to be able to run / be evaluated, in terms of CPU and memory. Using a GPU is optional.
OLLAMA_HOST
can be used to set a different host address thanlocalhost:11434
for the Ollama server.
go install github.com/xyproto/fortunecraft@latest
Then place ~/go/bin
in the PATH
, or install ~/go/bin/fortunecraft
somewhere else, if you want.
./fortunecraft
The best way to predict the future is to invent it.
❯ ./fortunecraft
The future is a tapestry woven with threads of chance and choice.
❯ fortunecraft -giz
Yeet your fears to the wind 🌬️🚀 You're boutta slay.
❯ ./fortunecraft -eNb
Resistance is futile!
Available Flags:
-a, --absurd Be absurd
-B, --boomer Boomer style
-b, --borg Make it about Borg
-c, --cats Make it about cats
-o, --computer Make it about computers
-D, --delusional Be delusional
-d, --dogs Make it about dogs
-e, --evil Be evil
-f, --fantasy Make it about fantasy
-z, --genz Make it more Gen Z
-g, --good Be good
-N, --inappropriate Be inappropriate
-i, --inspire Be inspirational
-t, --international Be international
-I, --ironic Be ironic
-k, --keyword string Specify a custom keyword
-1, --leet 1337 style
-l, --logical Make it more logical
-n, --ninja Make it about ninjas
-O, --old Use language from 100 years ago
-p, --pirate Write like a pirate
-P, --political Be political
-y, --pony Make it about ponies
-A, --praise Fill it with praise
-r, --robot Make it about robots
-R, --romantic Add a romantic touch to the fortune
-s, --sarcastic Generate a sarcastic fortune
-C, --scifi Make it sci-fi related
-u, --user Make it about the current user
-V, --version Output the current version
-w, --weird Be weird
Examples:
fortunecraft -giz - Generate good inspirational GenZ fortunes
fortunecraft -eNb - Generate evil inappropriate Borg fortunes
fortunecraft -gaCy - Generate good absurd sci-fi fortunes about ponies
fortunecraft -iep - Generate inspirational evil pirate fortunes
fortunecraft -sPB - Generate sarcastic political boomer fortunes
fortunecraft -I -k AI - Generate ironic fortunes about AI
- Version: 1.8.2
- License: Apache 2
- Author: Alexander F. Rødseth <xyproto@archlinux.org>