mirror of
https://github.com/friuns2/BlackFriday-GPTs-Prompts.git
synced 2026-05-01 06:23:54 +07:00
.
This commit is contained in:
+6
-6
@@ -4,12 +4,12 @@ import { promises as fs } from 'fs';
|
||||
|
||||
|
||||
const jsonContents = await fs.readFile("data/gpts.json", 'utf8');
|
||||
const flow = JSON.parse(jsonContents).filter(data => data.uri.length <= 200).slice(0, 1000);
|
||||
|
||||
const flow = JSON.parse(jsonContents).filter(data => data.uri.length <= 200 && !data.nsfw).slice(0, 1000);
|
||||
//files
|
||||
|
||||
let i =0;
|
||||
for (let data of flow) {
|
||||
if(data.nsfw) continue;
|
||||
|
||||
let url = "https://gptcall.net/chat.html?data="+encodeURIComponent(JSON.stringify({"contact":{ "id": data.id, "flow": true}}));
|
||||
const markdown = `
|
||||
[](${url})
|
||||
@@ -44,11 +44,11 @@ ${data.Conversation.messages.map(message => `**${message.role.toUpperCase()}**:
|
||||
|
||||
|
||||
|
||||
|
||||
//categories
|
||||
|
||||
const groups = groupBy(flow, "categoryId");
|
||||
|
||||
let header = "# Here's a list of free GPTs that work without a ChatGPT Plus subscription.\n\n";
|
||||
let header = "# List of GPTs Prompts for free use (ChatGPT Plus subscription bypass.)\n\n";
|
||||
|
||||
for (let groupId of Object.getOwnPropertyNames(groups)) {
|
||||
let name = groups[groupId][0].category.name;
|
||||
@@ -63,7 +63,7 @@ await fs.writeFile(`README.md`, header);
|
||||
for (let groupId of Object.getOwnPropertyNames(groups)) {
|
||||
let name = groups[groupId][0].category.name;
|
||||
|
||||
let readmeContent = `# ${name}\n\n`;
|
||||
let readmeContent = `${header}\n\n# ${name}\n\n`;
|
||||
|
||||
for (let item of groups[groupId]) {
|
||||
let desc = item.description.replace(/[\r\n]+/g, ' ').trim().substring(0, 550);
|
||||
|
||||
Reference in New Issue
Block a user