diff --git a/config.example.ts b/config.example.ts index 26ae825..b984208 100644 --- a/config.example.ts +++ b/config.example.ts @@ -6,7 +6,7 @@ export const config = { "prefix": "[[", // Prefix for all commands "postfix": "]]", // Postfix for rolling command "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) "workerTimeout": 300000 // Maximum time before the bot kills a worker thread in ms }, diff --git a/src/commandUtils.ts b/src/commandUtils.ts index b234ccb..0182bbf 100644 --- a/src/commandUtils.ts +++ b/src/commandUtils.ts @@ -206,6 +206,9 @@ export const generateRollEmbed = async (authorId: bigint, returnDetails: SolvedR color: failColor, title: 'Roll failed:', description: `${returnDetails.errorMsg}`, + footer: { + text: `Code: ${returnDetails.errorCode}`, + }, }, hasAttachment: false, attachment: {