{"id":21470299,"url":"https://github.com/therealtoxicdev/fates.js","last_synced_at":"2025-03-17T06:43:21.988Z","repository":{"id":106962216,"uuid":"360974927","full_name":"TheRealToxicDev/fates.js","owner":"TheRealToxicDev","description":"NPM Wrapper for the Fates List API","archived":false,"fork":false,"pushed_at":"2021-04-23T19:15:14.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T16:12:41.142Z","etag":null,"topics":["api","bot","bot-list","discord","javascript","list","node","npm","wrapper"],"latest_commit_sha":null,"homepage":"https://fateslist.xyz/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheRealToxicDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"TheRealToxicDev","custom":"fateslist.xyz"}},"created_at":"2021-04-23T18:35:50.000Z","updated_at":"2021-04-23T19:15:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5e6f835-97b5-4581-854b-6f03c8e9c0b3","html_url":"https://github.com/TheRealToxicDev/fates.js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealToxicDev%2Ffates.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealToxicDev%2Ffates.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealToxicDev%2Ffates.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealToxicDev%2Ffates.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheRealToxicDev","download_url":"https://codeload.github.com/TheRealToxicDev/fates.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243988956,"owners_count":20379649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","bot","bot-list","discord","javascript","list","node","npm","wrapper"],"created_at":"2024-11-23T09:26:41.363Z","updated_at":"2025-03-17T06:43:21.965Z","avatar_url":"https://github.com/TheRealToxicDev.png","language":"JavaScript","funding_links":["https://github.com/sponsors/TheRealToxicDev","fateslist.xyz"],"categories":[],"sub_categories":[],"readme":"# fates.js\nThe official NPM Module for interacting with the Fates List API\n\n---\n\n## Installation\n`npm i --save github:TheRealToxicDev/fates.js`\n\n---\n\n## Hard Coded Install\nAppend the Line below to your package.json\n```\n\"fates.js\": \"https://github.com/TheRealToxicDev/fates.js\",\n```\n\n---\n\n## Posting Stats\n\n### Constructor\n\n```\nFL(client, token)\n```\n\n###### Arguments\nParameter | Type | Optional | Description\n|--------------|----------|--------------|--------------|\ntoken | String | No | The API Auth Token found on your bots page.\nclient | Snowflake | No | The Client ID for the bot you want to post stats to.\n\n--- \n\n### Discord.js v12 Example\n\n```js\nconst Discord = require(\"discord.js\")\nconst client = new Discord.Client()\nconst prefix = \"!\";\nconst FL = require(\"fates.js\")\nconst Fates = new FL(client.user.id, \"bot-auth-token\")\n\nclient.on(\"ready\", () =\u003e {\nconsole.log(`Logged in as ${client.user.tag}.`)\nsetInterval(() =\u003e {\n/* Here is where we Post the stats to the Site (Only use one of these) */\n   Fates.post(client.guilds.cache.size) /* Will `POST` server count*/\n   //Fates.post(client.guilds.cache.size, client.shard.count) /* Will `POST` server and shard count*/\n  })\n}, 300000) //5 Minutes in MS\n\nclient.on(\"message\", message =\u003e {\n    if(message.author.bot) return\n    if(message.content == prefix + \"ping\"){\n        message.reply(`Pong! it took ${client.ws.ping}`)\n    }\n})\n\nclient.login(\"token\")\n\n```\n\n---\n\n## Getting Stats\n\n### Constructor\n\n```\nFL()\n```\n\n### Example\n```js\n   COMING SOON\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealtoxicdev%2Ffates.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftherealtoxicdev%2Ffates.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealtoxicdev%2Ffates.js/lists"}