Skip to content

Commit

Permalink
add color to pause/resume lable
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed May 1, 2024
1 parent 5bc3607 commit 1689042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def change_maxbot_status_by_keyword():
if is_matched:
#print("match to idle:", current_time)
maxbot_idle()
#print("resume_keyword", config_dict["advanced"]["resume_keyword"])
if len(config_dict["advanced"]["resume_keyword"]) > 0:
is_matched = util.is_text_match_keyword(config_dict["advanced"]["resume_keyword"], current_time)
if is_matched:
Expand Down
8 changes: 4 additions & 4 deletions www/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -555,28 +555,28 @@ <h2 class="accordion-header">
</div>

<div class="row mb-3">
<label for="idle_keyword" class="col-sm-2 col-form-label">系統時間 - 暫停關鍵字</label>
<label for="idle_keyword" class="col-sm-2 col-form-label">系統時間 - <span class="text-danger">暫停</span>關鍵字</label>
<div class="col-sm-10">
<textarea class="form-control" id="idle_keyword" rows="3"></textarea>
</div>
</div>

<div class="row mb-3">
<label for="resume_keyword" class="col-sm-2 col-form-label">系統時間 - 接繼關鍵字</label>
<label for="resume_keyword" class="col-sm-2 col-form-label">系統時間 - <span class="text-success">接繼</span>關鍵字</label>
<div class="col-sm-10">
<textarea class="form-control" id="resume_keyword" rows="3"></textarea>
</div>
</div>

<div class="row mb-3">
<label for="idle_keyword_second" class="col-sm-2 col-form-label">秒數 - 暫停關鍵字</label>
<label for="idle_keyword_second" class="col-sm-2 col-form-label">秒數 - <span class="text-danger">暫停</span>關鍵字</label>
<div class="col-sm-10">
<textarea class="form-control" id="idle_keyword_second" rows="3"></textarea>
</div>
</div>

<div class="row mb-3">
<label for="resume_keyword_second" class="col-sm-2 col-form-label">秒數 - 接繼關鍵字</label>
<label for="resume_keyword_second" class="col-sm-2 col-form-label">秒數 - <span class="text-success">接繼</span>關鍵字</label>
<div class="col-sm-10">
<textarea class="form-control" id="resume_keyword_second" rows="3"></textarea>
</div>
Expand Down

0 comments on commit 1689042

Please sign in to comment.