1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

Implement full roll alias system with support for yVars, currently untested. Additionally: made numbers in code more readable, change indentation to spaces in db init files, fix simulatedNominal system defaults to be config driven

This commit is contained in:
Ean Milligan
2025-07-13 01:22:47 -04:00
parent fedba62d52
commit 4bbdb59f3d
32 changed files with 1358 additions and 169 deletions

21
src/embeds/alias.ts Normal file
View File

@@ -0,0 +1,21 @@
import { CreateMessage } from '@discordeno';
import config from '~config';
import { failColor } from 'embeds/colors.ts';
export const generateAliasError = (customMessage: string, customId: string): CreateMessage => ({
embeds: [
{
color: failColor,
title: 'Something went wrong!',
description: `The Alias System has encountered an error:
- ${customMessage}
Please try again. If this continues to happen, please \`${config.prefix}report\` the error code to the developer.`,
footer: {
text: `Error Code: ${customId}`,
},
},
],
});