v1.3.3: 따라갈 사람 목록 · 롤 채팅 OCR 제거 · 표시 이름(실명 숨기기)
- 따라갈 사람: 봇이 서버를 지켜보기 전 멤버 요청을 사이트 서버가 forbidden 으로 거절하고 앱이 오류를 숨겨 빈 목록이 됐다 → 가입한 서버면 지켜보기 전에도 응답(source.members 가 멤버 확인), 앱은 오류 · 다시 불러오기 표시 → 내 계정 → 관리자(GET /app/admins) → 이름순, 녹음할 서버를 바꾸면 봇을 다시 붙여 새 서버를 지켜봄 - 롤 채팅 OCR 제거: 앱 설정 · 마법사 · 진단 · lol.ts · 워커 ocr.py/ocr_* op · pywinrt/mss/Pillow · win-ci ocr_lang 롤은 게임 중 전체/팀 채팅 API 가 없어 LCU(챔피언 선택 · 게임 후) + r3dlog(남아 있을 때, LCU 채팅을 지우지 않고 추가) - 표시 이름: 서버 store.displayNames (세션 · 앱 유저 · 접속 기록 이름까지 바꿈), GET /app/names, PUT /app/admin/names, cli name. 앱은 받아서 users · 지난 범인 분석 이름을 바꾸고 이후 디스코드 이름 대신 저장. 관리자 탭에 편집 UI - 저장소 시연 · 테스트 데이터 · 화면 캡처 · 계획서 PDF 의 실제 이름을 가짜 이름으로 교체 - 테스트: 앱 41 · 서버 16 · 워커 39 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@ const LS = Date.now() - 80 * MIN;
|
||||
const lol = makeDemoLol();
|
||||
const lolId = 'lol-demo';
|
||||
core.store.setMeta('riot_self_puuid', 'l-sh');
|
||||
core.store.setAccounts('u1', [{ puuid: 'p-sh', riotId: '승한#V' }, { puuid: 'l-sh', riotId: '승한#L' }]);
|
||||
core.store.setAccounts('u1', [{ puuid: 'p-sh', riotId: '하늘#V' }, { puuid: 'l-sh', riotId: '하늘#L' }]);
|
||||
core.store.setAccounts('u2', [{ puuid: 'p-ms', riotId: '민수#V' }, { puuid: 'l-ms', riotId: '민수#L' }]);
|
||||
core.store.startSession('s-lol', 'g', 'c', '음성', LS - MIN);
|
||||
core.games.matchStarted({ id: lolId, game: 'lol', startedAt: LS, map: 'Map11', mode: 'CLASSIC', queue: '420', detail: { live: true } });
|
||||
@@ -66,7 +66,7 @@ const { RelayClient } = await import('../src/core/relay/client.ts');
|
||||
const rc = new RelayClient(local as any, core.bus, () => ({ serverUrl: base, deviceId: reg.deviceId, deviceKey: reg.deviceKey, name: 'GAME-PC', version: 't', guildId: 'g' }));
|
||||
rc.start();
|
||||
while (!site.hub.status().online) await new Promise((r) => setTimeout(r, 100));
|
||||
const sess = site.store.createSession({ id: 'u1', name: '승한', avatar: null });
|
||||
const sess = site.store.createSession({ id: 'u1', name: '하늘', avatar: null });
|
||||
const cookieHeader = `gvr_sid=${encodeURIComponent(site.app.signCookie(sess.token))}`;
|
||||
|
||||
const stages: Record<string, string[]> = {};
|
||||
|
||||
@@ -18,7 +18,7 @@ const { id: valId } = seedValorant(core);
|
||||
const LS = Date.now() - 80 * MIN;
|
||||
const lol = makeDemoLol();
|
||||
core.store.setMeta('riot_self_puuid', 'l-sh');
|
||||
core.store.setAccounts('u1', [{ puuid: 'p-sh', riotId: '승한#V' }, { puuid: 'l-sh', riotId: '승한#L' }]);
|
||||
core.store.setAccounts('u1', [{ puuid: 'p-sh', riotId: '하늘#V' }, { puuid: 'l-sh', riotId: '하늘#L' }]);
|
||||
core.store.setAccounts('u2', [{ puuid: 'p-ms', riotId: '민수#V' }, { puuid: 'l-ms', riotId: '민수#L' }]);
|
||||
core.store.startSession('s2', 'g', 'c', '음성', LS - MIN);
|
||||
core.games.matchStarted({ id: 'lol-demo', game: 'lol', startedAt: LS, map: 'Map11', mode: 'CLASSIC', queue: '420', detail: { live: true } });
|
||||
@@ -78,7 +78,7 @@ const rc = new RelayClient(local as any, core.bus, () => ({ serverUrl: base, dev
|
||||
rc.start();
|
||||
// 사이트 화면은 /api/overview · /api/users 도 부른다
|
||||
while (!site.hub.status().online) await new Promise((r) => setTimeout(r, 100));
|
||||
const sess = site.store.createSession({ id: 'u1', name: '승한', avatar: null });
|
||||
const sess = site.store.createSession({ id: 'u1', name: '하늘', avatar: null });
|
||||
const cookie = { name: 'gvr_sid', value: site.app.signCookie(sess.token), url: base };
|
||||
|
||||
const puppeteer = (await import(path.join(os.homedir(), '.tmp/gvr-shot/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js'))).default;
|
||||
|
||||
@@ -24,7 +24,7 @@ fs.symlinkSync(path.join(hf, fs.readdirSync(hf)[0]), path.join(work, 'models', m
|
||||
fs.writeFileSync(path.join(work, 'settings.json'), JSON.stringify({ stt: { realtimeModel: model, preciseModel: model, device: 'cpu', computeType: 'int8' }, games: { valorant: false, lol: false } }));
|
||||
|
||||
const USERS = [
|
||||
{ id: '100000000000000001', name: '승한', voice: 'ko-KR-InJoonNeural', val: 'p-sh', lol: 'l-sh' },
|
||||
{ id: '100000000000000001', name: '하늘', voice: 'ko-KR-InJoonNeural', val: 'p-sh', lol: 'l-sh' },
|
||||
{ id: '100000000000000002', name: '민수', voice: 'ko-KR-HyunsuMultilingualNeural', val: 'p-ms', lol: 'l-ms' },
|
||||
{ id: '100000000000000003', name: '지우', voice: 'ko-KR-SunHiNeural', val: 'p-jw', lol: 'l-jw' },
|
||||
{ id: '100000000000000004', name: '현우', voice: 'ko-KR-InJoonNeural', pitch: '-8Hz', val: 'p-hw', lol: 'l-hw' },
|
||||
@@ -136,8 +136,8 @@ LINES.forEach((l, i) => {
|
||||
});
|
||||
for (const [m, name, ch, text, src] of [
|
||||
[-1.5, '민수', 'team', '정글 갱 갈게요', 'lcu'],
|
||||
[5.2, 'Lumi', 'all', '아리 잘하네', 'ocr'],
|
||||
[11.4, '지우', 'team', '드래곤 가자', 'ocr'],
|
||||
[5.2, 'Lumi', 'all', '아리 잘하네', 'log'],
|
||||
[11.4, '지우', 'team', '드래곤 가자', 'log'],
|
||||
[28.5, 'Kiwi', 'all', 'gg', 'lcu'],
|
||||
] as const) {
|
||||
games.event({ id: `${lolId}:chat:demo${m}`, match_id: lolId, game: 'lol', type: 'chat', ts: LS + m * 60_000, game_time_ms: m * 60_000, round: null, actor_puuid: null, target_puuid: null, data: JSON.stringify({ sender: { name }, channel: ch, text, source: src }) });
|
||||
@@ -200,7 +200,7 @@ const reg = await registerDevice(base, code.code, 'GAME-PC');
|
||||
core.settings.update({ site: { serverUrl: base, deviceId: reg.deviceId, deviceName: 'GAME-PC' } });
|
||||
core.settings.setSecret('deviceKey', reg.deviceKey);
|
||||
core.relay.restart();
|
||||
const sess = site.store.createSession({ id: USERS[0].id, name: '승한', avatar: null });
|
||||
const sess = site.store.createSession({ id: USERS[0].id, name: '하늘', avatar: null });
|
||||
const cookie = { name: 'gvr_sid', value: site.app.signCookie(sess.token), url: base };
|
||||
while (core.relay.status.state !== 'online') await new Promise((r) => setTimeout(r, 100));
|
||||
console.log(`사이트: ${base} (쿠키 gvr_sid=${cookie.value})`);
|
||||
|
||||
Reference in New Issue
Block a user