From d9d1d6e52bc8b4f6dba0a343a7852a69e1fb1ef3 Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Mon, 11 Dec 2023 16:02:41 +0000 Subject: [PATCH] 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 --- plugins/tildewash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tildewash.py b/plugins/tildewash.py index 03f5150..7b13b4c 100644 --- a/plugins/tildewash.py +++ b/plugins/tildewash.py @@ -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)