webfast 0.1.78 → 0.1.80
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.
package/README.md
CHANGED
|
@@ -6,6 +6,9 @@ WebFast! is a lightweight, model-based framework developed by Hybrid Institute.
|
|
|
6
6
|
|
|
7
7
|
WebFast! provides a flexible and intuitive platform for creating web applications without the need for extensive coding. It empowers users to leverage a model-based approach, making it accessible to a broader audience, including those with limited coding experience.
|
|
8
8
|
|
|
9
|
+
## Telegram Community Group
|
|
10
|
+
Join the [WebFast! Telegram Community](https://t.me/webfast_community) for quick questions and further discussion of development of the webFast! Framework.
|
|
11
|
+
|
|
9
12
|
## Features
|
|
10
13
|
|
|
11
14
|
- **Lightweight**: Keep your projects streamlined with a minimalistic approach.
|
|
@@ -117,6 +120,8 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
117
120
|
|
|
118
121
|
For questions or feedback, please feel free to [contact me on LinkedIn](https://linkedin.com/in/kaigartner). You can also reach out to me on Instagram: [@kaigartner](https://instagram.com/kaigartner).
|
|
119
122
|
|
|
123
|
+
|
|
124
|
+
|
|
120
125
|
---
|
|
121
126
|
|
|
122
127
|
**Hybrid Institute** - Empowering the future with innovative solutions.
|
|
@@ -441,12 +441,22 @@ module.exports = async function(program,folder) {
|
|
|
441
441
|
|
|
442
442
|
// Process scripts
|
|
443
443
|
let scriptsPath = program.path.join(__dirname,`telegram`,`scripts`);
|
|
444
|
+
// Loop Through scripts folder
|
|
445
|
+
let scriptsData = await program.modules.walkDirectory(scriptsPath);
|
|
446
|
+
let secPath;
|
|
444
447
|
if (program.set.path != undefined) {
|
|
445
|
-
|
|
448
|
+
// Get extra data
|
|
449
|
+
|
|
450
|
+
secPath = program.path.join(program.set.path,`bots`,`telegram`,`scripts`);
|
|
451
|
+
secData = await program.modules.walkDirectory(secPath);
|
|
452
|
+
|
|
453
|
+
// Concat scsriptsdata with secData
|
|
454
|
+
if (secData.length > 0) {
|
|
455
|
+
const combinedArray = scriptsData.concat(secData);
|
|
456
|
+
scriptsData = combinedArray;
|
|
457
|
+
}
|
|
446
458
|
}
|
|
447
459
|
|
|
448
|
-
// Loop Through scripts folder
|
|
449
|
-
let scriptsData = await program.modules.walkDirectory(scriptsPath);
|
|
450
460
|
|
|
451
461
|
// Let's loop througha and if no extension it's folder
|
|
452
462
|
let allScripts = {
|
|
@@ -7,7 +7,7 @@ const client = new MongoClient(uri);
|
|
|
7
7
|
|
|
8
8
|
module.exports = {
|
|
9
9
|
uploadBuffer: async function (progam,buffer, filename, metadata = {}, callback) {
|
|
10
|
-
const dbName =
|
|
10
|
+
const dbName = process.env.dbName;
|
|
11
11
|
await client.connect();
|
|
12
12
|
|
|
13
13
|
const db = client.db(dbName);
|