Fix error in wrote command
This commit is contained in:
parent
d0bb6d86e8
commit
a1f66563e6
|
@ -11,7 +11,7 @@ def wrote(bot,channel,nick,*args):
|
|||
args = list(args)
|
||||
if len(args)!=1:
|
||||
bot.say(channel,"Usage: !wrote <name/number>")
|
||||
if args.isdigit():
|
||||
if args[0].isdigit():
|
||||
wrote[nick]=get_wordcount(nick)+int(args[0])
|
||||
else:
|
||||
bot.say(channel,"{}: _{}_ has wrote {!s} words".format(nick,args[0],get_wordcount(args[0])))
|
||||
|
|
Loading…
Reference in New Issue