From 2af3561e951345ce2e72e44cd644eb2a4b2dfbeb Mon Sep 17 00:00:00 2001 From: Nutthapat Pongtanyavichai <59821765+Leomotors@users.noreply.github.com> Date: Sun, 18 Sep 2022 21:58:26 +0700 Subject: [PATCH] chore: update readme --- README.md | 6 +++--- src/bot.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 570df05..64ee423 100644 --- a/README.md +++ b/README.md @@ -70,10 +70,10 @@ In case you want to (not recommended) - Add required .env parameters -- For the first time, do `npm install` or `yarn install` to install dependencies -and `npm run build` or `yarn build` to build the bot. +- For the first time, do `pnpm install` to install dependencies +and `pnpm build` to build the bot. -- To start bot, do `npm start` or `yarn start` +- To start bot, do `pnpm start` - To Stop Bot and Logout _properly_, Type `logout` in the Bot Console diff --git a/src/bot.ts b/src/bot.ts index 31e506d..391b0f6 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -37,7 +37,7 @@ salimCenter.on("interaction", (name, ctx) => { sclient.client.on("ready", async () => { await salimCenter.validateCommands(); - await salimCenter.syncCommands(); + await salimCenter.syncCommands(true); }); // * Done! That's it required for this bot!