aboutsummaryrefslogtreecommitdiff
path: root/modules/coins.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-28 18:16:19 +0100
committerGravatar jesopo2018-08-28 18:16:19 +0100
commit6ecae3b261900db9c5dfc97b8b2b56b3835a65d9 (patch)
treea407613d2ffa5800eebdcea1d75aad00b673c422 /modules/coins.py
parentChange verbose logging to use propper logging system (diff)
Add the ability to only require authentication if your nickname is registered
Diffstat (limited to 'modules/coins.py')
-rw-r--r--modules/coins.py4
1 files changed, 2 insertions, 2 deletions
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 <coin amount>", min_args=2, authenticated=True)
+ "heads|tails <coin amount>", 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="<nickname> <amount>", authenticated=True)
bot.events.on("received.command.roulette").hook(
self.roulette, min_args=2, help="Spin the roulette wheel",
- usage="<type> <amount>", authenticated=True)
+ usage="<type> <amount>", protect_registered=True)
now = datetime.datetime.now()
until_next_hour = 60-now.second