1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-08 21:37:54 -05:00
Optional logging of rolls added
API Key Verification Added
API Authorization/Authentication Added
This commit is contained in:
Ean Milligan (Bastion)
2021-01-14 08:47:18 -05:00
parent 05e6a4d8be
commit 31349c5f51
6 changed files with 194 additions and 19 deletions

1
src/solver.d.ts vendored
View File

@ -23,6 +23,7 @@ export type SolvedStep = {
export type SolvedRoll = {
error: boolean,
errorMsg: string,
errorCode: string,
line1: string,
line2: string,
line3: string

View File

@ -725,6 +725,7 @@ const parseRoll = (fullCmd: string, localPrefix: string, localPostfix: string, m
const returnmsg = {
error: false,
errorMsg: "",
errorCode: "",
line1: "",
line2: "",
line3: ""
@ -960,6 +961,7 @@ const parseRoll = (fullCmd: string, localPrefix: string, localPostfix: string, m
// Fill in the return block
returnmsg.error = true;
returnmsg.errorCode = solverError.message;
returnmsg.errorMsg = errorMsg;
}