protect_registered doesn't exist anymore

This commit is contained in:
jesopo 2018-09-05 13:36:07 +01:00
parent c4cedbe697
commit a04a246b67

View file

@ -41,13 +41,13 @@ class Module(object):
self.redeem_coins, help="Redeem free coins") self.redeem_coins, help="Redeem free coins")
events.on("received.command.flip").hook(self.flip, events.on("received.command.flip").hook(self.flip,
help="Bet coins on a coin flip", usage= help="Bet coins on a coin flip", usage=
"heads|tails <coin amount>", min_args=2, protect_registered=True) "heads|tails <coin amount>", min_args=2, authenticated=True)
events.on("received.command.sendcoins").hook( events.on("received.command.sendcoins").hook(
self.send, min_args=2, help="Send coins to a user", self.send, min_args=2, help="Send coins to a user",
usage="<nickname> <amount>", authenticated=True) usage="<nickname> <amount>", authenticated=True)
events.on("received.command.roulette").hook( events.on("received.command.roulette").hook(
self.roulette, min_args=2, help="Spin the roulette wheel", self.roulette, min_args=2, help="Spin the roulette wheel",
usage="<type> <amount>", protect_registered=True) usage="<type> <amount>", authenticated=True)
now = datetime.datetime.now() now = datetime.datetime.now()
until_next_hour = 60-now.second until_next_hour = 60-now.second