IRCCD-PLUGIN-HANGMAN(7) | Miscellaneous Information Manual | IRCCD-PLUGIN-HANGMAN(7) |
hangman
—
hangman
plugin lets you play the hangman game on
IRC.
hangman
is distributed with irccd. To enable
it add the following to your plugins section:
[plugins] hangman = ""
hangman
plugin starts when a user execute its
special command with no arguments.
markand: !hangman irccd: markand, the game is started, the word to find is: _ _ _ _ _ _ _ _ _ _ _
If a game is already running, the same command shows the current word.
markand: !hangman irccd: markand, the game is already running and the word is: s _ _,
There are two ways for proposing a response to the game. You can either just ask for a letter or for a whole word.
markand: c irccd: markand, nice! the word is now c _ _ _ _ jean: k irccd: jean, there is no 'k'.
markand: !hangman couch irccd: markand, this is not the word. jean: !hangman candy irccd: jean, congratulations, the word is candy.
The file must contains one word per line, it must be saved as UTF-8 and words must only contains UTF-8 characters, any other entry will be ignored.
Example:
sky irccd FreeBSD door cat
hangman
plugin supports the following templates in
[templates.hangman] section:
All templates support the following standard keywords: channel, command, nickname, origin, plugin, server.
[plugin.hangman] file = "/var/srv/db/words.txt" [templates.hangman] win = "nice job, the word was #{word}!" wrong-letter = "please try again, there is no #{letter}"
@IRCCD_MAN_DATE@ | Linux 5.2.9-arch1-1-ARCH |