diff --git a/api/index.js b/api/index.js index c92e1e2..956ad48 100644 --- a/api/index.js +++ b/api/index.js @@ -1,5 +1,6 @@ // code provided by tzlil +require("dotenv").config(); const os = require("os"); const { Worker, isMainThread, parentPort } = require("worker_threads"); const magick = require("../utils/image.js"); diff --git a/app.js b/app.js index c2b6744..c2ee1b4 100644 --- a/app.js +++ b/app.js @@ -1,3 +1,7 @@ +if (process.platform === "win32") console.log("\x1b[1m\x1b[31m\x1b[40m" + `WIN32 IS NOT OFFICIALLY SUPPORTED! +Although there's a (very) slim chance of it working, multiple aspects of the bot are built with UNIX-like systems in mind and could break on Win32-based systems. If you want to run the bot on Windows, using Windows Subsystem for Linux is highly recommended. +The bot will continue to run past this message, but keep in mind that it could break at any time. Continue running at your own risk; alternatively, stop the bot using Ctrl+C and install WSL.` + "\x1b[0m"); + // load config from .env file require("dotenv").config();