Skip to content

Commit f47da46

Browse files
committed
chore: Don't fire messages to UGO for dev games
1 parent 18c597c commit f47da46

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/cache/ugo.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { usePersistedCache } from '@/cache/persisted';
55
import { TimeZone } from '@/ps/handlers/cron/constants';
66
import { BG_STRUCHNI_MODIFIER, BOARD_GAMES_STRUCHNI_ORDER, UGO_2025_SPOTLIGHTS } from '@/ps/ugo/constants';
77
import { toId } from '@/tools';
8+
import { Logger } from '@/utils/logger';
89
import { mapValues } from '@/utils/map';
910

1011
import type { UGOBoardGames } from '@/ps/ugo/constants';
@@ -77,6 +78,8 @@ export function addUGOPoints(this: Client, pointsData: Record<string, number>, g
7778
UGO_POINTS.set(current);
7879

7980
uploadToPastie(JSON.stringify(commit, null, 2)).then(url => {
80-
this.addUser('UGO').send(`;setpointsfromjson boardgames, ${url}`);
81+
const command = `;setpointsfromjson boardgames, ${url}`;
82+
if (process.env.NODE_ENV === 'development') Logger.log(command);
83+
else this.addUser('UGO').send(command);
8184
});
8285
}

0 commit comments

Comments
 (0)