add timeout (default 300 seconds)

This commit is contained in:
Gordon Shumway 2019-03-12 22:05:33 -04:00 committed by GitHub
parent f9f893ffe1
commit 9fe3ff13a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ conf.registerChannelValue(HuntNFish, 'enable',
registry.Boolean(True, _("""Turns on and off the hunt and fish commands.""")))
conf.registerChannelValue(HuntNFish, 'successRate',
registry.NonNegativeInteger(50, _("""Percent of chance of success""")))
conf.registerChannelValue(HuntNFish, 'timeout',
registry.NonNegativeInteger(300, _("""How long in seconds the pause between hunts and fishs should be.""")))
conf.registerChannelValue(HuntNFish, 'huntTargets',
registry.CommaSeparatedListOfStrings(["bear","gopher","rabbit","hunter","deer","fox","duck","moose","park ranger","Yogi Bear","Boo Boo Bear","dog named Benji","cow","raccoon","koala bear","camper","channel lurker","your mother","lion","ocelot","house cat"], _("""List of hunting tagets""")))
conf.registerChannelValue(HuntNFish, 'fishTargets',