From d8466ecf6d2994471b4eaa2db384a6cf83a1ccda Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 28 Aug 2018 12:42:10 +0100 Subject: Require authentication to use or potentially lose coins --- modules/coins.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/coins.py') 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="") - 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 ", min_args=2) + "heads|tails ", min_args=2, authenticated=True) bot.events.on("received.command.sendcoins").hook( self.send, min_args=2, help="Send coins to a user", - usage=" ") + usage=" ", authenticated=True) bot.events.on("received.command.roulette").hook( self.roulette, min_args=2, help="Spin the roulette wheel", - usage=" ") + usage=" ", authenticated=True) now = datetime.datetime.now() until_next_hour = 60-now.second -- cgit v1.3.1-10-gc9f91