Add password generation feature to annna. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 487e2c7dbe61f128fab6dab03fb4cde43003c666 | |
parent b7d639aecf3d8225a2d2e0c9aa1fdc6ce877313e | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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.… | |
;; | |
+"${ircuser}, please generate a password for me.") | |
+ newpws="$(pwgen -B1ny 20 10 | paste -sd ' ')" | |
+ annna-say -s "${server}" -c "${channel}" "${user}, as you wish: ${newp… | |
+ ;; | |
*"don't care"*) | |
dontcaresay="$(shuf -n 1 ${idontcaredb})" | |
annna-say -s "${server}" -c "${channel}" "${user}, ${dontcaresay}" |