Parse map models and validate them (#13)
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: #13 Co-authored-by: Carter Penterman <carterpenterman@gmail.com> Co-committed-by: Carter Penterman <carterpenterman@gmail.com>
This commit is contained in:
6
bot.js
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 => {
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user