We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
,games
1 parent 5935a1e commit 717a5b8Copy full SHA for 717a5b8
1 file changed
src/ps/commands/games/meta.tsx
@@ -4,6 +4,7 @@ import { renderMenu } from '@/ps/games/menus';
4
import type { PSCommand } from '@/types/chat';
5
import type { HTMLopts } from 'ps-client/classes/common';
6
import type { ReactElement } from 'react';
7
+import { PSGames } from '@/cache';
8
9
export const command: PSCommand = {
10
name: 'games',
@@ -25,6 +26,7 @@ export const command: PSCommand = {
25
26
<>
27
<hr />
28
{Object.values(Games)
29
+ .filter(Game => Object.keys(PSGames[Game.meta.id] ?? {}).length > 0)
30
.map(Game => (
31
32
<h3>{Game.meta.name}</h3>
0 commit comments