Require authentication to use or potentially lose coins
This commit is contained in:
parent
2806a915bc
commit
d8466ecf6d
1 changed files with 3 additions and 4 deletions
|
@ -35,20 +35,19 @@ class Module(object):
|
||||||
min_args=1, help=
|
min_args=1, help=
|
||||||
"Reset a specified user's coins to %s" % str(DECIMAL_ZERO),
|
"Reset a specified user's coins to %s" % str(DECIMAL_ZERO),
|
||||||
usage="<target>")
|
usage="<target>")
|
||||||
|
|
||||||
bot.events.on("received.command.richest").hook(
|
bot.events.on("received.command.richest").hook(
|
||||||
self.richest, help="Show the top 10 richest users")
|
self.richest, help="Show the top 10 richest users")
|
||||||
bot.events.on("received.command.redeemcoins").hook(
|
bot.events.on("received.command.redeemcoins").hook(
|
||||||
self.redeem_coins, help="Redeem free coins")
|
self.redeem_coins, help="Redeem free coins")
|
||||||
bot.events.on("received.command.flip").hook(self.flip,
|
bot.events.on("received.command.flip").hook(self.flip,
|
||||||
help="Bet coins on a coin flip", usage=
|
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(
|
bot.events.on("received.command.sendcoins").hook(
|
||||||
self.send, min_args=2, help="Send coins to a user",
|
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(
|
bot.events.on("received.command.roulette").hook(
|
||||||
self.roulette, min_args=2, help="Spin the roulette wheel",
|
self.roulette, min_args=2, help="Spin the roulette wheel",
|
||||||
usage="<type> <amount>")
|
usage="<type> <amount>", authenticated=True)
|
||||||
|
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
until_next_hour = 60-now.second
|
until_next_hour = 60-now.second
|
||||||
|
|
Loading…
Reference in a new issue