Skip to content

Commit cb8b9ba

Browse files
committed
Merge pull request #2 from annejan/master
SHA2017 acrnym meaning generator
2 parents 37553a2 + a5c04a4 commit cb8b9ba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sha.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import willie
2+
from willie.module import commands, interval
3+
4+
@willie.module.commands('sha')
5+
@willie.module.example('.sha', 'sha')
6+
def spacestate(bot, trigger):
7+
"""Gives you a random SHA2017 slogan suggestion"""
8+
txt = "echo \"$(grep \"^s\" /usr/share/dict/cracklib-small | shuf -n1) $(grep \"^h\" /usr/share/dict/cracklib-small | shuf -n1) $(grep \"^a\" /usr/share/dict/cracklib-small | shuf -n1) 2017\""
9+
bot.say(os.popen(txt).read().title())
10+

0 commit comments

Comments
 (0)