cleanwash: Include user's nick in message
This makes it easier to know who triggered it in busy rooms, with multiple people playing at the same timemaster
parent
9520adc3d0
commit
d9d1d6e52b
|
@ -39,7 +39,7 @@ def cleanwash_money(msg):
|
||||||
jackpotfile.truncate()
|
jackpotfile.truncate()
|
||||||
jackpot_now = str(jackpot + jackpot_balance)
|
jackpot_now = str(jackpot + jackpot_balance)
|
||||||
jackpotfile.write(jackpot_now)
|
jackpotfile.write(jackpot_now)
|
||||||
message = f"Cleanwashed {balance}TCN, and given the user {new_balance}TCN ({percentage_return}%) and contributed {jackpot_balance}TCN to the balance, jackpot at {jackpot_now}TCN"
|
message = f"{msg.nick}: Cleanwashed {balance}TCN, and given the user {new_balance}TCN ({percentage_return}%) and contributed {jackpot_balance}TCN to the balance, jackpot at {jackpot_now}TCN"
|
||||||
util.tilde.admin_update_tilde(nick,amount=new_balance,time=msg.timestamp,comment=message)
|
util.tilde.admin_update_tilde(nick,amount=new_balance,time=msg.timestamp,comment=message)
|
||||||
return pinhook.plugin.message(message)
|
return pinhook.plugin.message(message)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue