Skip to content

Commit

Permalink
fix(discordx): init commands log
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayymmeena committed Jun 18, 2024
1 parent 045af7c commit f929328
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/discordx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# discordx

## 11.11.2

### Patch Changes

- fix init commands log

## 11.11.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/discordx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discordx",
"version": "11.11.1",
"version": "11.11.2",
"private": false,
"description": "Create a discord bot with TypeScript and Decorators!",
"keywords": [
Expand Down
25 changes: 12 additions & 13 deletions packages/discordx/src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,23 +695,22 @@ export class Client extends ClientJS {
const commandsToAddNames = commandsToAdd
.map((DCommand) => DCommand.name)
.join(", ");

const commandsToUpdateNames = commandsToUpdate
const commandsToDeleteNames = commandsToDelete
.map((DCommand) => DCommand.name)
.join(", ");

const commandsToDeleteNames = commandsToDelete
const commandsToSkipNames = commandsToSkip
.map((DCommand) => DCommand.name)
.join(", ");

const commandsToSkipNames = commandsToSkip
const commandsToUpdateNames = commandsToUpdate
.map((DCommand) => DCommand.name)
.join(", ");

str += `\n\t>> adding ${String(commandsToAdd.length)} [${commandsToAddNames}]`;
str += `\n\t>> updating ${String(commandsToAdd.length)} [${commandsToUpdateNames}]`;
str += `\n\t>> deleting ${String(commandsToAdd.length)} [${commandsToDeleteNames}]`;
str += `\n\t>> skipping ${String(commandsToAdd.length)} [${commandsToSkipNames}]`;
str += `\n\t>> deleting ${String(commandsToDelete.length)} [${commandsToDeleteNames}]`;
str += `\n\t>> skipping ${String(commandsToSkip.length)} [${commandsToSkipNames}]`;
str += `\n\t>> updating ${String(commandsToUpdate.length)} [${commandsToUpdateNames}]`;

str += "\n";

Expand Down Expand Up @@ -836,22 +835,22 @@ export class Client extends ClientJS {
.map((DCommand) => DCommand.name)
.join(", ");

const commandsToUpdateNames = commandsToUpdate
const commandsToDeleteNames = commandsToDelete
.map((DCommand) => DCommand.name)
.join(", ");

const commandsToDeleteNames = commandsToDelete
const commandsToSkipNames = commandsToSkip
.map((DCommand) => DCommand.name)
.join(", ");

const commandsToSkipNames = commandsToSkip
const commandsToUpdateNames = commandsToUpdate
.map((DCommand) => DCommand.name)
.join(", ");

str += `\n\t>> adding ${String(commandsToAdd.length)} [${commandsToAddNames}]`;
str += `\n\t>> updating ${String(commandsToAdd.length)} [${commandsToUpdateNames}]`;
str += `\n\t>> deleting ${String(commandsToAdd.length)} [${commandsToDeleteNames}]`;
str += `\n\t>> skipping ${String(commandsToAdd.length)} [${commandsToSkipNames}]`;
str += `\n\t>> deleting ${String(commandsToDelete.size)} [${commandsToDeleteNames}]`;
str += `\n\t>> skipping ${String(commandsToSkip.length)} [${commandsToSkipNames}]`;
str += `\n\t>> updating ${String(commandsToUpdate.length)} [${commandsToUpdateNames}]`;

str += "\n";

Expand Down

0 comments on commit f929328

Please sign in to comment.