Add password generation feature to annna. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 487e2c7dbe61f128fab6dab03fb4cde43003c666 DIR parent b7d639aecf3d8225a2d2e0c9aa1fdc6ce877313e HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 25 Aug 2024 20:59:16 +0200 Add password generation feature to annna. Diffstat: M annna-message-common | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -392,6 +392,10 @@ case "${text}" in "${ircuser}, what the shame?") annna-say -s "${server}" -c "${channel}" "${user}, gophers://bitreich.org/1/irc/shame" ;; +"${ircuser}, please generate a password for me.") + newpws="$(pwgen -B1ny 20 10 | paste -sd ' ')" + annna-say -s "${server}" -c "${channel}" "${user}, as you wish: ${newpws}" + ;; *"don't care"*) dontcaresay="$(shuf -n 1 ${idontcaredb})" annna-say -s "${server}" -c "${channel}" "${user}, ${dontcaresay}"