This commit is contained in:
Gordon Shumway 2019-03-14 12:28:53 -04:00 committed by GitHub
parent 750553c633
commit 4ee1fbe0a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -106,7 +106,6 @@ class HuntNFish(callbacks.Plugin):
irc.reply("You got a new highscore!")
else:
irc.reply("Oops, you missed the {0}{1} {2}.".format(weight, weightType, currentWhat))
hunt = wrap(hunt)
def fish(self,irc,msg,args):
@ -195,7 +194,6 @@ class HuntNFish(callbacks.Plugin):
catch = data[1].rstrip('\n')
size = data[2].rstrip('\n')
irc.reply('Fishing highscore held by: %s with a %s%s %s' % (fisherman, size, weightType, catch))
trophy = wrap(trophy)
def resetscores(self,irc,msg,args):
@ -208,18 +206,11 @@ class HuntNFish(callbacks.Plugin):
return
hunttrophy = conf.supybot.directories.data.dirize("hunttrophy_{0}.db".format(channel))
fishtrophy = conf.supybot.directories.data.dirize("fishtrophy_{0}.db".format(channel))
if not os.path.isfile(fishtrophy):
with open(fishtrophy, 'w') as f:
f.write('Nobody\nnothing\n2')
if not os.path.isfile(hunttrophy):
with open(hunttrophy, 'w') as f:
f.write('Nobody\nnothing\n2')
with open(hunttrophy, 'w') as f:
f.write('Nobody\nnothing\n2')
with open(fishtrophy, 'w') as f:
f.write('Nobody\nnothing\n2')
irc.replySuccess()
resetscores = wrap(resetscores, ['owner'])
Class = HuntNFish