From 6ecae3b261900db9c5dfc97b8b2b56b3835a65d9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 28 Aug 2018 18:16:19 +0100 Subject: Add the ability to only require authentication if your nickname is registered --- modules/coins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/coins.py') diff --git a/modules/coins.py b/modules/coins.py index e0c100d1..4fa0377e 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -41,13 +41,13 @@ class Module(object): self.redeem_coins, help="Redeem free coins") bot.events.on("received.command.flip").hook(self.flip, help="Bet coins on a coin flip", usage= - "heads|tails ", min_args=2, authenticated=True) + "heads|tails ", min_args=2, protect_registered=True) bot.events.on("received.command.sendcoins").hook( self.send, min_args=2, help="Send coins to a user", usage=" ", authenticated=True) bot.events.on("received.command.roulette").hook( self.roulette, min_args=2, help="Spin the roulette wheel", - usage=" ", authenticated=True) + usage=" ", protect_registered=True) now = datetime.datetime.now() until_next_hour = 60-now.second -- cgit v1.3.1-10-gc9f91