Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #183 from limeless/patch-1
Browse files Browse the repository at this point in the history
Update Commands.ts to fix toLowerCase undefined on no arguments
  • Loading branch information
dsonck92 authored Feb 18, 2022
2 parents ac5dfdc + 51d89fb commit 4605101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ Additionally you will be invited to guild channels as messages are sent in them.
await sendMessage("Puppet not found!");
return;
}
if (param == null || param == undefined) {
await sendMessage("Usage: `bridgeall <puppetId> <1/0>`");
}
const bridgeAll = param === "1" || param.toLowerCase() === "true";
p.data.bridgeAll = bridgeAll;
await this.app.puppet.setPuppetData(puppetId, p.data);
Expand Down

0 comments on commit 4605101

Please sign in to comment.