Skip to content

Commit

Permalink
fix: tg reconnect (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 authored Jan 18, 2025
1 parent 728da78 commit a34f9e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/website/server/core/telegram/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ gameBot.on('message:text', async (ctx) => {
},
)

await notifyAdmin(`[Woodlands] Команда старт от пользователя ${ctx.message.from.id} ${ctx.message.from.first_name}, locale: ${ctx.message.from.language_code}`)
// await notifyAdmin(`[Woodlands] Команда старт от пользователя ${ctx.message.from.id} ${ctx.message.from.first_name}, locale: ${ctx.message.from.language_code}`)

return
}
Expand Down
1 change: 1 addition & 0 deletions packages/game/src/lib/services/baseWebSocketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class BaseWebSocketService implements WebSocketService {
}
if (message.type === 'ROOM_DESTROYED') {
// reconnect
this.addon.rebuildScene()
this.roomId = null
this.connect('12345')
}
Expand Down

0 comments on commit a34f9e8

Please sign in to comment.