Skip to content

Commit

Permalink
feat: 极客模式的默认结束时间从5回合拉长到20回合
Browse files Browse the repository at this point in the history
  • Loading branch information
wzpan committed Apr 8, 2023
1 parent 4ba4471 commit 4a5524d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.2
3.5.0
4 changes: 1 addition & 3 deletions plugins/Geek.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
import time

from robot import config, logging
from robot.sdk.AbstractPlugin import AbstractPlugin

Expand Down Expand Up @@ -35,7 +33,7 @@ def onAsk(self, input):
self.con.doResponse(input)
else:
self.silent_count += 1
if self.silent_count >= config.get("/geek/max_silent_count", 5):
if self.silent_count >= config.get("/geek/max_silent_count", 20):
self.say("退出极客模式", cache=True)
self.clearImmersive()
else:
Expand Down
2 changes: 1 addition & 1 deletion static/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ LocalPlayer:

## 极客模式
geek:
max_silent_count: 5 # 当不说话的次数达到多少次后,主动退出极客模式
max_silent_count: 20 # 当不说话的次数达到多少次后,主动退出极客模式

statistic: true # 是否开启上报

Expand Down

0 comments on commit 4a5524d

Please sign in to comment.