Parse map models and validate them ()

The enhancements:
- Added map validation that checks for some common errors that maps have
- /take: Does map validation but will still take the map even if there are problems
- /take: Improved the help text and added links to the maptest places
- /submit: Does map validation and will not let you submit if there are problems
- /submissions: Now shows the map's display name and creator
- Added an ESLint config and tidied some things up
- Updated some of the packages

Reviewed-on: 
Co-authored-by: Carter Penterman <carterpenterman@gmail.com>
Co-committed-by: Carter Penterman <carterpenterman@gmail.com>
This commit is contained in:
2024-04-24 06:28:07 +00:00
committed by Quaternions
parent f8476577d6
commit 3a167cf686
8 changed files with 267 additions and 45 deletions

6
bot.js

@ -1,8 +1,8 @@
const fs = require('node:fs');
const { Client, Collection, Intents } = require("discord.js");
const { Client, Collection } = require("discord.js");
const {token} = require("./config/config.json");
const client = new Client({intents: [Intents.FLAGS.GUILDS]});
const client = new Client({intents: ["Guilds"]});
client.commands = new Collection();
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
@ -29,7 +29,7 @@ client.on('interactionCreate', async interaction => {
}
});
client.on("error", async error => {
client.on("error", async _error => {
});