Fix error in wrote command

This commit is contained in:
Robert Miles 2019-10-31 13:57:32 -04:00
parent d0bb6d86e8
commit a1f66563e6
1 changed files with 1 additions and 1 deletions

View File

@ -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])))