rewrite: Add command mention cache.

This commit is contained in:
2023-05-25 19:26:06 +03:00
parent 68605248de
commit d36ffedd70
2 changed files with 31 additions and 2 deletions

View File

@@ -387,12 +387,13 @@ class RoomUI(MessageUI):
bank_value = t(_p(
'ui:room_status|embed|field:bank|value:expiring',
"**Warning:** Insufficient room balance to pay next rent ({coin} **{rent}**).\n"
"The room will expire {expiry}.\nUse `/room deposit` to increase balance."
"The room will expire {expiry}.\nUse {room_deposit_cmd} to increase balance."
)).format(
coin=conf.emojis.coin,
amount=balance,
rent=rent,
expiry=next_tick
expiry=next_tick,
room_deposit_cmd=self.bot.core.mention_cmd('room deposit')
)
else:
bank_value = t(_p(