Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shit Happens Again 2021 #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sha.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())