Better logging
All checks were successful
NodBot Production Dockerization / build (pull_request) Successful in 15s
All checks were successful
NodBot Production Dockerization / build (pull_request) Successful in 15s
This commit is contained in:
parent
c0c719f7bf
commit
b5c7d8448c
6
main.js
6
main.js
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user