Skip to content

Commit 8726cf6

Browse files
committed
fix: 자동 종료 기능 제외
1 parent ed6156a commit 8726cf6

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

src/main/java/com/workingdead/chatbot/command/WendyCommand.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -234,21 +234,21 @@ private void handleDateInput(TextChannel channel, Member member, int weeks, bool
234234
wendyScheduler.startSchedule(channel);
235235

236236

237-
// 투표 제한시간(24시간) + 30분 후 자동 종료 스케줄
238-
CompletableFuture
239-
.delayedExecutor(3 * 60 + 30, TimeUnit.SECONDS)
240-
.execute(() -> {
241-
String chId = channel.getId();
242-
// 스케줄러 정리 + 세션 종료
243-
wendyScheduler.stopSchedule(chId);
244-
wendyService.endSession(chId);
245-
246-
// 안내 메시지 전송
247-
channel.sendMessage("""
248-
투표 제한 시간이 지나 웬디가 자동으로 종료되었어요 :D
249-
다시 일정 조율이 필요하시면 '웬디 시작'을 입력해 주세요!
250-
""").queue();
251-
});
237+
// // 투표 제한시간(24시간) + 30분 후 자동 종료 스케줄
238+
// CompletableFuture
239+
// .delayedExecutor(3 * 60 + 30, TimeUnit.SECONDS)
240+
// .execute(() -> {
241+
// String chId = channel.getId();
242+
// // 스케줄러 정리 + 세션 종료
243+
// wendyScheduler.stopSchedule(chId);
244+
// wendyService.endSession(chId);
245+
//
246+
// // 안내 메시지 전송
247+
// channel.sendMessage("""
248+
// 투표 제한 시간이 지나 웬디가 자동으로 종료되었어요 :D
249+
// 다시 일정 조율이 필요하시면 '웬디 시작'을 입력해 주세요!
250+
// """).queue();
251+
// });
252252
}
253253

254254
private void handleRevote(TextChannel channel) {

0 commit comments

Comments
 (0)