Add info about cleanwash-moneyback requests

master
jmjl 2023-11-05 06:02:10 +00:00
parent ffc91a26ce
commit 9520adc3d0
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def cleanwash_return_before(msg):
balance = Decimal(subprocess.check_output(['/home/jmjl/bin/coin','Ju','internal_balance',nick],universal_newlines=True))
if not amount_to_return: amount_to_return = balance
if amount_to_return > balance: return pinhook.plugin.message(f"{msg.nick}: Error, {amount_to_return} is more than what you have with us. (You have {balance}TCN returnable with us)")
sentproc = subprocess.run(['/home/jmjl/bin/coin','Ju','send',nick,str(amount_to_return.quantize(Decimal('.00'),rounding=ROUND_DOWN))],capture_output=True,text=True)
sentproc = subprocess.run(['/home/jmjl/bin/coin','Ju','send',nick,str(amount_to_return.quantize(Decimal('.00'),rounding=ROUND_DOWN)),f"Requested by {msg.nick} at {__import__('time').time()}"],capture_output=True,text=True)
if sentproc.returncode == 0: return pinhook.plugin.message(f"{msg.nick}: Succesfully sent {amount_to_return}TCN back")
else:
err_id = str(uuid.uuid4())