Disable coin interest by default (coins.py)

This commit is contained in:
jesopo 2019-01-23 08:47:14 +00:00
parent 96f6be087a
commit e45b72356c

View file

@ -438,6 +438,8 @@ class Module(ModuleManager.BaseModule):
@utils.hook("timer.coin-interest")
def interest(self, event):
for server in self.bot.servers.values():
if not server.get_value("coin-interest", False):
continue
all_coins = self._all_coins(server)
interest_rate = decimal.Decimal(server.get_setting(