aboutsummaryrefslogtreecommitdiff
path: root/modules/coins.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-28 12:42:10 +0100
committerGravatar jesopo2018-08-28 12:42:10 +0100
commitd8466ecf6d2994471b4eaa2db384a6cf83a1ccda (patch)
tree4da957745f84edb4e7edf83f854cd28de23a3727 /modules/coins.py
parentAdd !resetcoins in coins.py (diff)
signature
Require authentication to use or potentially lose coins
Diffstat (limited to 'modules/coins.py')
-rw-r--r--modules/coins.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/coins.py b/modules/coins.py
index 5a9be747..954c0c33 100644
--- a/modules/coins.py
+++ b/modules/coins.py
@@ -35,20 +35,19 @@ class Module(object):
min_args=1, help=
"Reset a specified user's coins to %s" % str(DECIMAL_ZERO),
usage="<target>")
-
bot.events.on("received.command.richest").hook(
self.richest, help="Show the top 10 richest users")
bot.events.on("received.command.redeemcoins").hook(
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)
+ "heads|tails <coin amount>", min_args=2, authenticated=True)
bot.events.on("received.command.sendcoins").hook(
self.send, min_args=2, help="Send coins to a user",
- usage="<nickname> <amount>")
+ 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>")
+ usage="<type> <amount>", authenticated=True)
now = datetime.datetime.now()
until_next_hour = 60-now.second