Better logging
NodBot Production Dockerization / build (pull_request) Successful in 15s
Details
NodBot Production Dockerization / build (pull_request) Successful in 15s
Details
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 heartbeatUrl = process.env.HEARTBEAT_URL;
|
||||
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
|
||||
const { Client, Intents } = require('discord.js');
|
||||
const client = new Client({
|
||||
|
|
Loading…
Reference in New Issue