Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ps/commands/games/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export const command: PSCommand[] = Object.entries(Games).map(([_gameId, Game]):
name: 'menu',
aliases: ['m', 'list'],
help: 'Displays active games.',
perms: Symbol.for('games.manage'),
perms: Symbol.for('games.create'),
syntax: 'CMD',
async run({ message, broadcastHTML }) {
const regHTML = renderMenu(message.target, Game.meta, false);
Expand All @@ -433,7 +433,7 @@ export const command: PSCommand[] = Object.entries(Games).map(([_gameId, Game]):
name: 'stash',
aliases: ['yeet'],
help: 'Stashes a game to store it for later.',
perms: Symbol.for('games.manage'),
perms: Symbol.for('games.create'),
syntax: 'CMD [game ref]',
async run({ message, arg, $T }) {
const { game } = getGame(arg, { action: 'any' }, { room: message.target, $T });
Expand All @@ -449,7 +449,7 @@ export const command: PSCommand[] = Object.entries(Games).map(([_gameId, Game]):
name: 'backups',
aliases: ['bu', 'b'],
help: 'Shows a list of currently available backups.',
perms: Symbol.for('games.manage'),
perms: Symbol.for('games.create'),
syntax: 'CMD',
async run({ message }) {
const HTML = renderBackups(message.target, Game.meta);
Expand All @@ -460,7 +460,7 @@ export const command: PSCommand[] = Object.entries(Games).map(([_gameId, Game]):
name: 'restore',
aliases: ['r', 'unstash', 'unyeet'],
help: 'Restores a game from stash/backups.',
perms: Symbol.for('games.manage'),
perms: Symbol.for('games.create'),
syntax: 'CMD [id]',
async run({ message, arg, $T }) {
const id = arg.trim().toUpperCase();
Expand Down
2 changes: 1 addition & 1 deletion src/ps/commands/games/meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const command: PSCommand = {
name: 'games',
help: 'Metacommands for games.',
syntax: 'CMD [menu]',
perms: Symbol.for('games.manage'),
perms: Symbol.for('games.create'),
categories: ['game'],
async run({ run }) {
return run('games menu');
Expand Down