From e8aee512487faa774e5e3ddbcb7d846353b8e3e2 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sat, 28 Sep 2024 21:26:27 +0200 Subject: [PATCH] #95 : Replaced : with / for commands --- src/utilities/chat.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utilities/chat.ts b/src/utilities/chat.ts index ad2ece6..599bee9 100644 --- a/src/utilities/chat.ts +++ b/src/utilities/chat.ts @@ -1,11 +1,11 @@ export function isCommand(message: string, command?: string) { if (command) { - return message.startsWith(`:${command} `) + return message.startsWith(`/${command} `) } - return message.startsWith(':') + return message.startsWith('/') } export function getArgs(command: string, message: string): string[] | undefined { if (!isCommand(message, command)) return - return message.split(`:${command} `)[1].split(' ') + return message.split(`/${command} `)[1].split(' ') }