Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Fix \Expected a 'break' statement before 'case' no-fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Mar 26, 2024
1 parent 2699556 commit 5016268
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5690,6 +5690,7 @@ async function ai(api, event) {
if (response == null) return sendMessage(api, event, handleError({ stacktrace: response, cuid: api.getCurrentUserID(), e: event }));
sendMessage(api, event, response.quote + "\n\nby " + response.character + " of " + response.anime);
});
break;
}
case "--advice": {
getResponseData("https://zenquotes.io/api/random").then((response) => {
Expand All @@ -5700,6 +5701,7 @@ async function ai(api, event) {
}
sendMessage(api, event, result);
});
break;
}
case "--inspiration": {
getResponseData("https://zenquotes.io/api/random").then((response) => {
Expand All @@ -5710,6 +5712,7 @@ async function ai(api, event) {
}
sendMessage(api, event, result);
});
break;
}
case "--motivation": {
getResponseData("https://zenquotes.io/api/random").then((response) => {
Expand All @@ -5720,9 +5723,11 @@ async function ai(api, event) {
}
sendMessage(api, event, result);
});
break;
}
default: {
sendMessage(api, event, "Houston! Unknown or missing option.\n\n Usage: qoute type" + "\n " + example[Math.floor(Math.random() * example.length)] + " qoute --anime");
break;
}
}
}
Expand Down

0 comments on commit 5016268

Please sign in to comment.