Skip to content

Commit

Permalink
Fix accidentally not handling if no command is found
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond-h committed Sep 7, 2024
1 parent e87a24e commit 6724e57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ async function getCommand(store, command) {
export async function runUserCommand(post, client, store, msg, data) {
const url = await getCommand(store, data.command);

if (url == null) {
return;
}

console.log(`POSTing to ${url} with arguments '${data.arguments}'`);

const res = await post(url, {
Expand Down

0 comments on commit 6724e57

Please sign in to comment.