Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Aug 4, 2023
1 parent ead2b1f commit f5804ac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
prerelease: false
- shell: bash
run: |
curl -d "key=${{ secrets.ADMIN_KEY }}" -X POST ${{ env.url }}/shutdown
curl -d "${{ secrets.ADMIN_KEY }}" -X POST ${{ env.url }}/shutdown
4 changes: 2 additions & 2 deletions client/src/commonMain/kotlin/start.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ suspend fun start() {
single(named("profile")) { profile }

}))
client()
startWebSocket()
// client()
// startWebSocket()
Korge(title = "Skeep", icon = "images/logo.png", scaleMode = ScaleMode.SHOW_ALL, backgroundColor = ColorPalette.background) {
sceneContainer = sceneContainer()
sceneContainer.changeTo({ MainScene() })
Expand Down
2 changes: 1 addition & 1 deletion client/src/commonMain/kotlin/ui/waitingRoom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ suspend fun WaitingRoomState.waitingRoom(room: UUID) {
if (packet !is PlayerLeavePacket) return@onEvent
val username = packet.username
chat("${username}이(가) 서버를 떠났습니다")

profiles.removeChildrenIf { index, child -> child.getExtra("profile") == username }
}
onEvent(PacketEvent) { event ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fun Application.configurationShutdown() {
routing {
post("shutdown") {
val key = EnvVar.ADMIN_KEY
if (call.receive<String>() == key) {
if (call.receiveText() == key) {
doShutdown(call)
}
}
Expand Down

0 comments on commit f5804ac

Please sign in to comment.