Pterodactyl panel support part 2
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//PLEASE COMPILE USING "npm run build" BEFORE STARTING THE BOT!
|
||||
//OR USE "npm start" TO INSTANTLY COMPILE & START THE BOT!
|
||||
|
||||
const fs = require("fs")
|
||||
const child = require("child_process")
|
||||
if (!fs.existsSync("./dist/src/index.js")){
|
||||
console.log("Compiling the bot...")
|
||||
child.execSync("npm run build",{timeout:10000})
|
||||
console.log("\n\nFinished compilation!")
|
||||
}
|
||||
require("./dist/src/index")
|
||||
Reference in New Issue
Block a user