diff options
| author | 2018-08-28 12:42:10 +0100 | |
|---|---|---|
| committer | 2018-08-28 12:42:10 +0100 | |
| commit | d8466ecf6d2994471b4eaa2db384a6cf83a1ccda (patch) | |
| tree | 4da957745f84edb4e7edf83f854cd28de23a3727 /modules/coins.py | |
| parent | Add !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.py | 7 |
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 |
