Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 3a13ec2

Browse files
committed
feat: new prefix
1 parent a922341 commit 3a13ec2

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/commands/Userphone/call.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class CallCommand extends BaseCommand {
4747
name: 'call',
4848
description: '📞 [BETA] Start a call with another server',
4949
aliases: ['c'],
50-
examples: ['i.call', 'i.c'],
50+
examples: ['.call', '.c'],
5151
types: { slash: true, prefix: true },
5252
contexts: { guildOnly: true },
5353
});

src/commands/Userphone/hangup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class HangupCommand extends BaseCommand {
4545
name: 'hangup',
4646
description: '📞 End the current call',
4747
aliases: ['h'],
48-
examples: ['i.hangup', 'i.h'],
48+
examples: ['.hangup', '.h'],
4949
types: { slash: true, prefix: true },
5050
contexts: { guildOnly: true },
5151
});

src/commands/Userphone/skip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class SkipCommand extends BaseCommand {
1616
name: 'skip',
1717
description: '[BETA] Skip the current call and find a new match',
1818
aliases: ['s'],
19-
examples: ['i.skip', 'i.s'],
19+
examples: ['.skip', '.s'],
2020
types: { slash: true, prefix: true },
2121
contexts: { guildOnly: true },
2222
});

src/core/CommandContext/ContextOpts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
import type Context from '#src/core/CommandContext/Context.js';
19-
// eslint-disable-next-line no-duplicate-imports
2019
import type { ValidContextInteractions } from '#src/core/CommandContext/Context.js';
2120
import type PrefixContext from '#src/core/CommandContext/PrefixContext.js';
2221
import { CustomID } from '#src/utils/CustomID.js';

src/events/messageCreate.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,15 @@ export default class MessageCreate extends BaseEventListener<'messageCreate'> {
4343
async execute(message: Message) {
4444
if (!message.inGuild() || !isHumanMessage(message)) return;
4545

46-
if (message.content.startsWith('c!')) {
46+
// FIXME: this is temp, remove on 01/07/2025
47+
if (message.content.includes('c!')) {
48+
await message.reply(
49+
'The `c!` prefix has been changed to `.`. Type `.help` to see all available commands.',
50+
);
51+
return;
52+
}
53+
54+
if (message.content.startsWith(message.client.prefix)) {
4755
await this.handlePrefixCommand(message);
4856
return;
4957
}

0 commit comments

Comments
 (0)