mirror of https://xfnw.ttm.sh/git/oirc.git
correct total calculation
This commit is contained in:
parent
8ce353c074
commit
10d1e6e5d7
|
@ -23,6 +23,7 @@ async def bal(self):
|
||||||
for i in bals:
|
for i in bals:
|
||||||
bals['bank'] += bals[i] * 0.001
|
bals['bank'] += bals[i] * 0.001
|
||||||
bals[i] -= bals[i] * 0.001
|
bals[i] -= bals[i] * 0.001
|
||||||
|
self.initfund = abs(bals['bank'])
|
||||||
return bals
|
return bals
|
||||||
|
|
||||||
async def send(self,c,n,m):
|
async def send(self,c,n,m):
|
||||||
|
@ -76,7 +77,7 @@ async def richest(self,c,n,m):
|
||||||
|
|
||||||
async def init(self):
|
async def init(self):
|
||||||
self.ledger = self.db['ledger']
|
self.ledger = self.db['ledger']
|
||||||
|
self.initfund = 0
|
||||||
|
|
||||||
self.cmd['sendcoins'] = send
|
self.cmd['sendcoins'] = send
|
||||||
self.cmd['balance'] = balance
|
self.cmd['balance'] = balance
|
||||||
|
|
Loading…
Reference in New Issue