mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
V1.1.1
Missed a couple breaks
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
export const config = {
|
export const config = {
|
||||||
"name": "The Artificer",
|
"name": "The Artificer",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"token": "the_bot_token",
|
"token": "the_bot_token",
|
||||||
"prefix": "[[",
|
"prefix": "[[",
|
||||||
"postfix": "]]",
|
"postfix": "]]",
|
||||||
|
|||||||
3
mod.ts
3
mod.ts
@@ -320,6 +320,7 @@ if (config.api.enable) {
|
|||||||
if (query.has("n") && query.has("m")) {
|
if (query.has("n") && query.has("m")) {
|
||||||
// Alert API user that they shouldn't be doing this
|
// Alert API user that they shouldn't be doing this
|
||||||
request.respond({ status: Status.BadRequest, body: STATUS_TEXT.get(Status.BadRequest) });
|
request.respond({ status: Status.BadRequest, body: STATUS_TEXT.get(Status.BadRequest) });
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Super secure authorization
|
// Super secure authorization
|
||||||
@@ -336,6 +337,7 @@ if (config.api.enable) {
|
|||||||
if (rollCmd.length === 0) {
|
if (rollCmd.length === 0) {
|
||||||
// Alert API user that they messed up
|
// Alert API user that they messed up
|
||||||
request.respond({ status: Status.BadRequest, body: STATUS_TEXT.get(Status.BadRequest) });
|
request.respond({ status: Status.BadRequest, body: STATUS_TEXT.get(Status.BadRequest) });
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clip off the leading prefix. API calls must be formatted with a prefix at the start to match how commands are sent in Discord
|
// Clip off the leading prefix. API calls must be formatted with a prefix at the start to match how commands are sent in Discord
|
||||||
@@ -376,6 +378,7 @@ if (config.api.enable) {
|
|||||||
if (gms.length === 0) {
|
if (gms.length === 0) {
|
||||||
// Alert API user that they messed up
|
// Alert API user that they messed up
|
||||||
request.respond({ status: Status.BadRequest, body: STATUS_TEXT.get(Status.BadRequest) });
|
request.respond({ status: Status.BadRequest, body: STATUS_TEXT.get(Status.BadRequest) });
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a new return line to be sent to the roller
|
// Make a new return line to be sent to the roller
|
||||||
|
|||||||
Reference in New Issue
Block a user