Skip to content

Commit 76c3c3e

Browse files
committed
refactor: Unify casual commands
1 parent 78bf61f commit 76c3c3e

4 files changed

Lines changed: 49 additions & 39 deletions

File tree

src/ps/commands/boop.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/ps/commands/casual.ts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import type { NoTranslate } from '@/i18n/types';
2+
import type { PSCommand } from '@/types/chat';
3+
4+
export const commands: PSCommand[] = [
5+
{
6+
name: 'boop',
7+
help: 'Boops',
8+
syntax: 'CMD',
9+
perms: ['room', 'mod'],
10+
categories: ['casual'],
11+
async run({ message, $T }) {
12+
return message.reply($T('COMMANDS.BOOP'));
13+
},
14+
},
15+
{
16+
name: 'pat',
17+
help: 'Pats a person.',
18+
syntax: 'CMD [user?]',
19+
perms: 'voice',
20+
aliases: ['pet'],
21+
categories: ['casual'],
22+
async run({ message, arg }) {
23+
return message.reply(`/me pats ${message.author.id === 'hydrostatics' ? 'Hydro' : arg}` as NoTranslate);
24+
},
25+
},
26+
{
27+
name: 'ping',
28+
help: "You're asking help on... how to use ping?",
29+
syntax: 'CMD',
30+
flags: { allowPMs: true },
31+
perms: ['room', 'voice'],
32+
categories: [],
33+
async run({ message, $T }) {
34+
return message.reply($T('COMMANDS.PONG'));
35+
},
36+
},
37+
{
38+
name: 'ii',
39+
help: 'Bullies Ruka.',
40+
syntax: 'CMD',
41+
flags: { allowPMs: true },
42+
rooms: ['boardgames'],
43+
perms: 'voice',
44+
categories: ['casual'],
45+
async run({ message }) {
46+
return message.reply("You don't have to tell me, I Audiino." as NoTranslate);
47+
},
48+
},
49+
];

src/ps/commands/pat.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/ps/commands/ping.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)