Skip to content

feat: 채팅 슬래시 명령어 시스템 고도화#521

Merged
DDINGJOO merged 1 commit into
developfrom
feature/517-chat-commands
Jan 24, 2026
Merged

feat: 채팅 슬래시 명령어 시스템 고도화#521
DDINGJOO merged 1 commit into
developfrom
feature/517-chat-commands

Conversation

@DDINGJOO

Copy link
Copy Markdown
Contributor

Summary

  • 게임 서비스 분리에 따른 기존 게임 명령어 제거
  • 순수 채팅방용 슬래시 명령어 시스템 구축
  • 투표 기능 구현

Changes

기본 명령어

  • /help - 명령어 목록
  • /members - 접속자 목록 (닉네임 포함)
  • /leave - 채팅방 나가기
  • /clear - 채팅 내역 삭제 요청

재미 명령어

  • /dice - 주사위 굴리기 (1-6)
  • /coin - 동전 던지기
  • /random [옵션들] - 랜덤 선택

투표 기능

  • /poll [질문] | [옵션1] | [옵션2] | ... - 투표 생성
  • /vote [번호] - 투표 참여
  • /endpoll - 투표 종료 (생성자만)

Files Changed

  • CommandService.java - 명령어 처리 리팩토링
  • Poll.java - 투표 모델 추가
  • PollRepository.java - 투표 저장소 추가
  • MessageType.java - POLL_CREATE, POLL_VOTE, POLL_END 추가
  • PollSpec.groovy - 투표 모델 테스트

Test plan

  • Poll 모델 단위 테스트 통과
  • 실제 채팅방에서 명령어 테스트
  • WebSocket 브로드캐스트 확인

Related Issues

Closes #517, #518, #519, #520

- 게임 관련 명령어 제거 (/start, /stop, /score, /skip, /hint)
- 기본 명령어 추가: /help, /members, /leave, /clear
- 재미 명령어 추가: /dice, /coin, /random
- 투표 시스템 구현: /poll, /vote, /endpoll
- Poll 모델 및 PollRepository 추가
- MessageType에 POLL_CREATE, POLL_VOTE, POLL_END 추가

Closes #518, #519, #520
@github-actions github-actions Bot added backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer layer:test Test code labels Jan 24, 2026
@github-actions

github-actions Bot commented Jan 24, 2026

Copy link
Copy Markdown

Jira: MESP-292

@DDINGJOO DDINGJOO merged commit a375535 into develop Jan 24, 2026
2 checks passed
hye-inA pushed a commit that referenced this pull request Jan 25, 2026
…-commands

feat: 채팅 슬래시 명령어 시스템 고도화
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer layer:test Test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant