Skip to content

Commit 48afd6c

Browse files
committed
타이머 시간 수정
#9
1 parent c0c39a9 commit 48afd6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def __init__(self, room_id: str):
4646
self.wolf = "" # player ID on Wolf
4747
self.wolf_choice = None
4848
self.check_timer = 10
49-
self.chat_timer = 30
50-
self.vote_timer = 30
49+
self.chat_timer = 10
50+
self.vote_timer = 10
5151
self.wolf_timer = 10
5252
self.dead_players = []
5353
self.votes= {}
@@ -178,7 +178,7 @@ async def start_chat_round(self):
178178
await self.room.broadcast(Process(
179179
type = "process",
180180
state = "dayTime",
181-
time = 30
181+
time = 10
182182
))
183183
self.process = "dayTime"
184184

@@ -217,7 +217,7 @@ async def start_chat_round(self):
217217
pigSubject=self.pigSubject
218218
))
219219

220-
await asyncio.sleep(30)
220+
await asyncio.sleep(10)
221221

222222
# wait
223223
await self.room.broadcast(Alert(
@@ -249,7 +249,7 @@ async def start_vote_round(self):
249249
await self.room.broadcast(Process(
250250
type = "process",
251251
state = "vote",
252-
time = 30
252+
time = self.vote_timer
253253
))
254254

255255
self.process = "vote"

0 commit comments

Comments
 (0)