|IRCCD-PLUGIN-JOKE(7)||Miscellaneous Information Manual||IRCCD-PLUGIN-JOKE(7)|
jokeplugin is a convenient command to display jokes in a random order without displaying always the same.
It loads jokes per channel/server pair and display a unique joke each time it is invoked.
jokeis distributed with irccd. To enable it add the following to your plugins section:
[plugins] joke = ""
jokeplugin requires a database of jokes file, it consists of a plain JSON file of array of array of strings.
Example of jokes.json file:
[ [ "Tip to generate a good random password:", "Ask a Windows user to quit vim." ], [ "Have you tried turning it off and on again?" ] ]
This file contains two jokes, the first one will be printed on two lines while the second only has one.
Then, invoke the plugin:
markand: !joke irccd: Have you tried turning it off and on again? markand: !joke irccd: Tip to generate a good random password: irccd: Ask a Windows user to quit vim.
Warning: if you use keywords in the **file** parameter, you won't have a default joke database anymore.
jokeplugin supports the following templates in [templates.joke] section:
|October 6, 2019||Linux 5.3.1-arch1-1-ARCH|