Better logging
NodBot Production Dockerization / build (pull_request) Successful in 15s Details

This commit is contained in:
Skylar Grant 2023-08-10 22:44:47 -04:00
parent c0c719f7bf
commit b5c7d8448c
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@ const token = process.env.TOKEN;
const statusChannelId = process.env.statusChannelId; const statusChannelId = process.env.statusChannelId;
const heartbeatUrl = process.env.HEARTBEAT_URL; const heartbeatUrl = process.env.HEARTBEAT_URL;
const sendHeartbeat = typeof heartbeatUrl === 'string'; const sendHeartbeat = typeof heartbeatUrl === 'string';
if (sendHeartbeat) {
if (isDev) console.log("Hearbeat Enabled: " + heartbeatUrl);
} else {
if (isDev) console.log("Hearbeat Disabled: " + heartbeatUrl + " (" + typeof heartbeatUrl + ")");
}
// Discord.JS // Discord.JS
const { Client, Intents } = require('discord.js'); const { Client, Intents } = require('discord.js');
const client = new Client({ const client = new Client({