Split incoming message on spaces
1 files changed, 3 insertions(+), 1 deletions(-) M app.ts
M app.ts => app.ts +3 -1
@@ 1,4 1,5 @@ import { TeamSpeak, QueryProtocol } from "ts3-nodejs-library"; import { GraphQLClient, gql } from "graphql-request"; import dotenv from "dotenv"; @@ dotenv.config(); 18,7 19,8 @@ TeamSpeak.connect({ teamspeak.clientMove(whoami.clientId, channel[0].cid); teamspeak.on("textmessage", (ev) => { switch (ev.msg) { const argv = ev.msg.split(" "); switch (argv[0]) { case "!hello": teamspeak.sendTextMessage( ev.invoker.clid,