debug lxc
This commit is contained in:
parent
572ab1a1de
commit
c4ea7c1835
1 changed files with 27 additions and 0 deletions
27
indexTest.js
Normal file
27
indexTest.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import 'dotenv/config';
|
||||
import { Client, GatewayIntentBits, Options, Events } from 'discord.js';
|
||||
|
||||
console.log("--- DEBUG START ---");
|
||||
|
||||
const client = new Client({
|
||||
makeCache: Options.cacheWithLimits({
|
||||
MessageManager: 0,
|
||||
}),
|
||||
intents: [
|
||||
GatewayIntentBits.Guilds,
|
||||
GatewayIntentBits.GuildMessages,
|
||||
GatewayIntentBits.MessageContent,
|
||||
]
|
||||
});
|
||||
|
||||
client.on(Events.ClientReady, async () => {
|
||||
console.log('-----------------------------------');
|
||||
console.log(`[SUCCESS] Logged in as ${client.user?.tag}`);
|
||||
console.log('--- BOT IS READY ---');
|
||||
console.log('-----------------------------------');
|
||||
});
|
||||
|
||||
console.log("Token status check: " + (process.env.DISCORD_TOKEN ? "Présent" : "ABSENT"));
|
||||
console.log("Attempting login...");
|
||||
|
||||
client.login(process.env.DISCORD_TOKEN);
|
||||
Loading…
Add table
Add a link
Reference in a new issue