Skip to content

Commit

Permalink
Upgrade to node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
alimg committed Dec 30, 2023
1 parent 5036b39 commit 2131ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function makeCommander(botContext: BotContext) {
.split(/ +/);
for (const [keywords, command] of Object.entries(botCommands)) {
const kw = keywords.split(" ")
if (words.slice(0, kw.length) === kw) {
if (words.slice(0, kw.length).join(" ") === kw.join(" ")) {
await command(message, words)
return
}
Expand Down

0 comments on commit 2131ab2

Please sign in to comment.