Add !nextlottery to modules/coins.py
This commit is contained in:
parent
ed03279406
commit
c5b07f520e
1 changed files with 6 additions and 0 deletions
|
@ -488,6 +488,12 @@ class Module(ModuleManager.BaseModule):
|
||||||
event["stdout"].write("%s: The current jackpot is %s" % (
|
event["stdout"].write("%s: The current jackpot is %s" % (
|
||||||
event["user"].nickname, decimal.Decimal(LOTTERY_BUYIN)*count))
|
event["user"].nickname, decimal.Decimal(LOTTERY_BUYIN)*count))
|
||||||
|
|
||||||
|
@utils.hook("received.command.nextlottery")
|
||||||
|
def next_lottery(self, event):
|
||||||
|
until = self._until_next_6_hour()
|
||||||
|
event["stdout"].write("Next lottery is in: %s" %
|
||||||
|
utils.to_pretty_time(until))
|
||||||
|
|
||||||
@utils.hook("timer.coin-lottery")
|
@utils.hook("timer.coin-lottery")
|
||||||
def lottery(self, event):
|
def lottery(self, event):
|
||||||
for server in self.bot.servers.values():
|
for server in self.bot.servers.values():
|
||||||
|
|
Loading…
Reference in a new issue