This commit is contained in:
Your a
2023-11-22 16:21:41 +02:00
parent 1366f7482b
commit aa956eb976
579 changed files with 109461 additions and 587 deletions
+6 -6
View File
@@ -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 = `
[![Vortex](${data.coverURL})](${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);