diff options
| author | 2018-10-16 13:53:32 +0100 | |
|---|---|---|
| committer | 2018-10-16 13:53:32 +0100 | |
| commit | ff7ac9fe89bf6ddcb444b36531e9363a61880f73 (patch) | |
| tree | d3b909e781627f89871192d6df7e50af42450027 /modules | |
| parent | Move some more str(coins) calls to _coin_str(coins) in modules/coins.py (diff) | |
| signature | ||
Add missing help strings to commands in modules/coins.py
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/coins.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/coins.py b/modules/coins.py index e0192c09..7570af03 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -106,6 +106,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.bank") def bank(self, event): + """ + :help: Show how many coins The Bank currently has + """ event["stdout"].write("The Bank has %s coins" % self._coin_str(self._get_pool(event["server"]))) @@ -119,6 +122,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.totalcoins") def total_coins(self, event): + """ + :help: Show how many coins are currently in circulation + """ event["stdout"].write("Total coins: %s" % self._coin_str( self._total_coins(event["server"]))) @@ -505,6 +511,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.mylottery") def my_lottery(self, event): + """ + :help: Show how many lottery tickets you currently have + """ lottery = event["server"].get_setting("lottery", {}) count = lottery.get(event["user"].nickname_lower, 0) event["stdout"].write("%s: You have %d lottery ticket%s" % ( @@ -512,6 +521,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.jackpot") def jackpot(self, event): + """ + :help: Show the current lottery jackpot + """ lottery = event["server"].get_setting("lottery", {}) count = sum([value for nickname, value in lottery.items()]) event["stdout"].write("%s: The current jackpot is %s" % ( @@ -519,6 +531,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.nextlottery") def next_lottery(self, event): + """ + :help: Show time until the next lottery draw + """ until = self._until_next_6_hour() event["stdout"].write("Next lottery is in: %s" % utils.to_pretty_time(until)) |
