リプライを取得
{% set _ps = plan_status %}
{# 追加クレジットも合算して % を計算 (使い切り感を軽減) #}
{% set _bonus = _ps.bonus_remaining or 0 %}
{% set _ai_bonus = _ps.ai_bonus_remaining or 0 %}
{% set _quota_total = _ps.monthly_quota + _bonus %}
{% set _ai_quota_total = _ps.ai_monthly_quota + _ai_bonus %}
{% set _quota_pct = (100 * _ps.used_this_month / _quota_total ) | round(1) if _quota_total else 0 %}
{% set _ai_pct = (100 * _ps.ai_used_this_month / _ai_quota_total) | round(1) if _ai_quota_total else 0 %}
現在のプラン: {{ _ps.plan_label }} (月額 ¥{{ '{:,}'.format(_ps.price_jpy) }})
⚙ プラン変更 →
💬 リプライ: {{ '{:,}'.format(_ps.used_this_month) }} / {{ '{:,}'.format(_ps.monthly_quota) }}{% if _bonus > 0 %} + 追加 {{ '{:,}'.format(_bonus) }}{% endif %} ({{ _quota_pct }}%)
🤖 AI判定: {{ '{:,}'.format(_ps.ai_used_this_month) }} / {{ '{:,}'.format(_ps.ai_monthly_quota) }}{% if _ai_bonus > 0 %} + 追加 {{ '{:,}'.format(_ai_bonus) }}{% endif %} ({{ _ai_pct }}%)
{% if not license_status.valid %}
{% endif %}
{% if not _ps.api_key_set %}
⚠ サーバーAPIキー未設定です。
⚙ 設定から TwitterAPI.io キーを登録してください。
{% endif %}