djs-builder 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/function/dash.js +5 -2
  2. package/package.json +2 -2
package/function/dash.js CHANGED
@@ -49,8 +49,8 @@ function dashboard(client, options) {
49
49
 
50
50
  // إعداد المسارات
51
51
  app.set("view engine", "ejs");
52
- app.set("views", path.join(__dirname, "views"));
53
- app.use(express.static(path.join(__dirname, "public")));
52
+ app.set("views", path.join(__dirname, "..", "views")); // تم تصحيح المسار
53
+ app.use(express.static(path.join(__dirname, "..", "public"))); // تم تصحيح المسار
54
54
  app.use(express.json());
55
55
  app.use(express.urlencoded({ extended: true }));
56
56
 
@@ -616,6 +616,9 @@ app.set("views", path.join(__dirname, "views"));
616
616
  res.status(404).render("404", { botStats: getBotStats() });
617
617
  });
618
618
 
619
+ // تشغيل الخادم
620
+ app.listen();
621
+
619
622
 
620
623
  return app;
621
624
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "djs-builder",
3
- "version": "0.7.2",
4
- "note": "🎉 Package Update! 🥏\n\n- 🌐 NEW: Dashboard System - Modern web-based control panel!\n • Discord OAuth2 Login\n • Server Management\n • Level System Control\n • Giveaway Management\n • Blacklist Management\n- Documentation: Full Dashboard guide added to README.\n- ✨ Standalone Usage: Use Dashboard with or without Starter!\n\n🔗 Learn more on [NPM](https://www.npmjs.com/package/djs-builder)",
3
+ "version": "0.7.3",
4
+ "note": "🎉 Package Update! 🥏\n\n- 🌐 NEW: Dashboard System - Modern web-based control panel!\n • Discord OAuth2 Login\n • Server Management\n • Level System Control\n • Giveaway Management\n • Blacklist Management\n- 📔 Documentation: Full Dashboard guide added to README.\n- ✨ Standalone Usage: Use Dashboard with or without Starter!\n\n🔗 Learn more on [NPM](https://www.npmjs.com/package/djs-builder)",
5
5
  "description": "🎉 NEW: Dashboard System - Web Control Panel! 🌐",
6
6
  "main": "handler/starter.js",
7
7
  "dependencies": {