Random tweaks
This commit is contained in:
parent
cb9129aebc
commit
9d0e704eae
4 changed files with 12 additions and 22 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue