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

Change alias name length to be driven by config, increase to 200char

This commit is contained in:
Ean Milligan
2025-07-13 03:09:36 -04:00
parent 4bbdb59f3d
commit fe70166e6a
4 changed files with 7 additions and 7 deletions

View File

@@ -49,14 +49,15 @@ const handleAddUpdate = async (message: DiscordenoMessage, guildMode: boolean, a
const aliasName = (argSpaces.shift() || '').trim();
argSpaces.shift();
if (aliasName.length > 100) {
if (aliasName.length > config.limits.alias.maxNameLength) {
message
.send({
embeds: [
{
color: failColor,
title: 'Error: Alias Name is too long',
description: `\`${aliasName}\` (\`${aliasName.length}\` characters) is longer than the allowed max length of \`100\` characters. Please choose a shorter alias name.`,
description:
`\`${aliasName}\` (\`${aliasName.length}\` characters) is longer than the allowed max length of \`${config.limits.alias.maxNameLength}\` characters. Please choose a shorter alias name.`,
},
],
})

View File

@@ -16,10 +16,8 @@ export const help = (message: DiscordenoMessage, guildMode: boolean) => {
Currently, you may create up to \`${config.limits.alias.free.guild.toLocaleString()}\` per guild and \`${config.limits.alias.free.user.toLocaleString()}\` per user account. This limit may increase or decrease in the future.
Aliases are case-insensitive (\`tEsT\` is stored as \`test\`, but can still be called as \`tEsT\`), and are not allowed to be named any of the following: \`${
ReservedWords.join(
'`, `',
)
Aliases are case-insensitive (\`tEsT\` is stored as \`test\`, but can still be called as \`tEsT\`), have a max allowed length of \`${config.limits.alias.maxNameLength}\`, cannot include any spaces, and are not allowed to be named any of the following: \`${
ReservedWords.join('`, `')
}\``,
},
{