index.js clean up
This commit is contained in:
parent
e489a1c710
commit
8a1d844439
6
index.js
6
index.js
|
@ -1,15 +1,13 @@
|
||||||
// Require the necessary discord.js classes
|
// Require the necessary discord.js classes
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
const { pathToFileURL } = require('node:url');
|
|
||||||
const { fileURLToPath } = require('url');
|
|
||||||
const { Client, Collection, Events, GatewayIntentBits } = require('discord.js');
|
const { Client, Collection, Events, GatewayIntentBits } = require('discord.js');
|
||||||
|
|
||||||
const { config } = require('dotenv');
|
const { config } = require('dotenv');
|
||||||
config();
|
config();
|
||||||
|
|
||||||
const { igdb } = require('./igdb.js');
|
const { igdb } = require('./igdb.js');
|
||||||
const igdbHelper = new igdb();
|
new igdb();
|
||||||
|
|
||||||
// Create a new client instance
|
// Create a new client instance
|
||||||
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
|
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
|
||||||
|
@ -78,4 +76,4 @@ const Tags = sequelize.define('tags', {
|
||||||
client.once(Events.ClientReady, () => {
|
client.once(Events.ClientReady, () => {
|
||||||
Tags.sync({ force: true });
|
Tags.sync({ force: true });
|
||||||
console.log(`Logged in as ${client.user.tag}!`);
|
console.log(`Logged in as ${client.user.tag}!`);
|
||||||
})
|
});
|
Loading…
Reference in New Issue