Added warning message for Win32, fixed api not getting env data
This commit is contained in:
parent
59dec7f857
commit
3deb2b4986
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
// code provided by tzlil
|
// code provided by tzlil
|
||||||
|
|
||||||
|
require("dotenv").config();
|
||||||
const os = require("os");
|
const os = require("os");
|
||||||
const { Worker, isMainThread, parentPort } = require("worker_threads");
|
const { Worker, isMainThread, parentPort } = require("worker_threads");
|
||||||
const magick = require("../utils/image.js");
|
const magick = require("../utils/image.js");
|
||||||
|
|
4
app.js
4
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
|
// load config from .env file
|
||||||
require("dotenv").config();
|
require("dotenv").config();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue