Added invite functionality and changed the EJS

This commit is contained in:
ION606
2023-04-01 21:49:27 -04:00
parent e0ffe24eec
commit f1415a9840
25 changed files with 589 additions and 201 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
const { Client, gateWayIntents, message, Interaction } = require('../structures/types');
const { bottoken } = require('../config.json');
import { Client, gateWayIntents, message, Interaction } from '../structures/types.js';
import config from '../config.json' assert { type: 'json' };
const { bottoken } = config;
var c = new Client({
intents: [
@@ -23,17 +23,17 @@ c.login(bottoken);
c.on('messageRecieved', /**@param {message} message*/ async (message) => {
require('./messageTests.js')(message);
(await import('./messageTests.js')).default(message);
});
c.on('interactionRecieved', /** @param {Interaction} interaction*/ async (interaction) => {
require('./interactionTests.js')(interaction);
(await import('./interactionTests.js')).default(interaction);
});
c.on('guildCreate', async (guild) => {
require('./guildTests.js')(c);
(await import('./guildTests.js')).default(c);
});