26.2 pre3
This commit is contained in:
1 parent
a7598d26aa
commit
4eef1867e3
26 files changed
+1221
-385
No files matched your search
@@ -85,6 +85,14 @@ async function logStartup(client, options = {}) {
|
||||
info("Version", botVersion);
|
||||
info("Node.js", process.version);
|
||||
info("Discord.js", `v${Discord.version}`);
|
||||
const db = require("./Database.js");
|
||||
const dbInfo = db.getDatabaseInfo ? db.getDatabaseInfo() : null;
|
||||
if (dbInfo) {
|
||||
const dbDisplay = dbInfo.type === "mysql"
|
||||
? `${dbInfo.driver} (${dbInfo.host}:${dbInfo.port}/${dbInfo.database})`
|
||||
: `${dbInfo.driver} (${dbInfo.file})`;
|
||||
info("Database", dbDisplay);
|
||||
}
|
||||
info("Logged in as", client.user.tag);
|
||||
info("Guilds", `${client.guilds.cache.size}`);
|
||||
|
||||
@@ -102,6 +110,16 @@ async function logStartup(client, options = {}) {
|
||||
console.log("");
|
||||
}
|
||||
|
||||
function checkSetup() {
|
||||
const { isSetupComplete } = require("./DashboardSetup.js");
|
||||
if (!isSetupComplete()) {
|
||||
const port = configStore.api?.API?.Port || 25575;
|
||||
section("Setup Required");
|
||||
status("Onboarding setup incomplete", false, `http://localhost:${port}/setup`);
|
||||
console.log("");
|
||||
}
|
||||
}
|
||||
|
||||
async function checkConfigs(client) {
|
||||
const supportbot = configStore.supportbot;
|
||||
const health = syncGuildHealth(client);
|
||||
@@ -169,6 +187,8 @@ async function runBotReady(client, options = {}) {
|
||||
if (logCommands) {
|
||||
logSlashCommandsRegistered(client);
|
||||
}
|
||||
|
||||
checkSetup();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in new issue
Block a user