Add roll error code to embed footer

This commit is contained in:
Ean Milligan (Bastion) 2022-06-19 21:56:50 -04:00
parent 137f6388f7
commit 3931ee8394
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export const config = {
"prefix": "[[", // Prefix for all commands "prefix": "[[", // Prefix for all commands
"postfix": "]]", // Postfix for rolling command "postfix": "]]", // Postfix for rolling command
"limits": { // Limits for the bot functions "limits": { // Limits for the bot functions
"maxLoops": 5000000, // Determines how long the bot will attempt a roll, number of loops before it kills a roll. Increase this at your own risk "maxLoops": 10000000, // Determines how long the bot will attempt a roll, number of loops before it kills a roll. Increase this at your own risk, originally was set to 5 Million before rollWorkers were added, increased to 10 Million since multiple rolls can be handled concurrently
"maxWorkers": 16, // Maximum number of worker threads to spawn at once (Set this to less than the number of threads your CPU has, Artificer will eat it all if too many rolls happen at once) "maxWorkers": 16, // Maximum number of worker threads to spawn at once (Set this to less than the number of threads your CPU has, Artificer will eat it all if too many rolls happen at once)
"workerTimeout": 300000 // Maximum time before the bot kills a worker thread in ms "workerTimeout": 300000 // Maximum time before the bot kills a worker thread in ms
}, },

View File

@ -206,6 +206,9 @@ export const generateRollEmbed = async (authorId: bigint, returnDetails: SolvedR
color: failColor, color: failColor,
title: 'Roll failed:', title: 'Roll failed:',
description: `${returnDetails.errorMsg}`, description: `${returnDetails.errorMsg}`,
footer: {
text: `Code: ${returnDetails.errorCode}`,
},
}, },
hasAttachment: false, hasAttachment: false,
attachment: { attachment: {