Random tweaks

This commit is contained in:
Luke Rogers 2012-03-26 21:59:02 +13:00
parent cb9129aebc
commit 9d0e704eae
4 changed files with 12 additions and 22 deletions

View file

@ -11,12 +11,7 @@ with open("plugins/data/fortunes.txt") as f:
fortunes.append(line.strip())
@hook.command(autohelp=False)
def fortune(inp, nick=None, say=None, input=None):
@hook.command
def fortune(inp):
".fortune -- Fortune cookies on demand."
msg = "(" + nick + ") " + random.choice(fortunes)
if inp:
msg = "(@" + inp + ") " + random.choice(fortunes)
say(msg)
return random.choice(fortunes)