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 time
master
jmjl 2023-12-11 16:02:41 +00:00
parent 9520adc3d0
commit d9d1d6e52b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def cleanwash_money(msg):
jackpotfile.truncate()
jackpot_now = str(jackpot + jackpot_balance)
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)
return pinhook.plugin.message(message)