pep8 much?
This commit is contained in:
parent
e77e45d8b8
commit
ed50bc746c
33 changed files with 92 additions and 99 deletions
|
@ -57,10 +57,9 @@ fortunes = ["Help! I'm stuck in the fortune cookie factory!",
|
|||
@hook.command(autohelp=False)
|
||||
def fortune(inp, nick=None, say=None, input=None):
|
||||
".fortune -- Fortune cookies on demand."
|
||||
|
||||
|
||||
msg = "(" + nick + ") " + random.choice(fortunes)
|
||||
if re.match("^[A-Za-z0-9_|.-\]\[]*$", inp.lower()) and inp != "":
|
||||
msg = "(@" + inp + ") " + random.choice(fortunes)
|
||||
|
||||
say(msg)
|
||||
|
||||
|
|
Reference in a new issue