diff --git a/sha.py b/sha.py index 584cafd..1112000 100644 --- a/sha.py +++ b/sha.py @@ -5,7 +5,7 @@ @willie.module.commands('sha') @willie.module.example('.sha', 'sha') def spacestate(bot, trigger): - """Gives you a random SHA2017 slogan suggestion""" - txt = "echo \"$(grep \"^s\" /usr/share/dict/cracklib-small | shuf -n1) $(grep \"^hack\" /usr/share/dict/cracklib-small | shuf -n1) $(grep \"^a\" /usr/share/dict/cracklib-small | shuf -n1) 2017\"" - bot.say(os.popen(txt).read().title()) - + """Gives you a random SHA2021 slogan suggestion""" + txt = "for v in s hack a; do w=$(grep \"^$v\" /usr/share/dict/cracklib-small | shuf -n1); echo -n \"${w^${v:0:1}} \"; done ; echo 2021" + bot.say(os.popen(txt).read()) +