{"id":15212959,"url":"https://github.com/DanieliusDev/Approxi","last_synced_at":"2025-10-03T04:31:05.966Z","repository":{"id":43022198,"uuid":"465040543","full_name":"DanieliusDev/Approxi","owner":"DanieliusDev","description":"A easy to use discord.js framework.","archived":true,"fork":false,"pushed_at":"2022-05-02T17:47:40.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T18:02:13.739Z","etag":null,"topics":["discord","discord-bot","discord-js","framework","typescript","typescript-definitions","typescript-library"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/approxi","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanieliusDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-01T20:08:08.000Z","updated_at":"2023-01-28T01:09:42.000Z","dependencies_parsed_at":"2022-09-03T19:00:13.782Z","dependency_job_id":null,"html_url":"https://github.com/DanieliusDev/Approxi","commit_stats":null,"previous_names":["danieliusdev/approxi","gamertike/approxi"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanieliusDev%2FApproxi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanieliusDev%2FApproxi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanieliusDev%2FApproxi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanieliusDev%2FApproxi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanieliusDev","download_url":"https://codeload.github.com/DanieliusDev/Approxi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235006571,"owners_count":18921207,"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":["discord","discord-bot","discord-js","framework","typescript","typescript-definitions","typescript-library"],"created_at":"2024-09-28T09:06:44.048Z","updated_at":"2025-10-03T04:31:00.710Z","avatar_url":"https://github.com/DanieliusDev.png","language":"TypeScript","readme":"# Approxi\n\nA easy to use [Discord.js](https://discord.js.org) framework.\n\n\u003e **Not:** This package will no longer be updated.\n\n## About\n\nApproxi is a powerful and easy to use [Discord.js](https://discord.js.org) framework that allows your code to be as minimal as possible.\n\n- Built in typescript.\n- Built on top of [Discord.js](https://discord.js.org).\n- Supports slash commands.\n- Easy configuration.\n\n## Useful links\n\n- [Discord.js documentation](https://discord.js.org/#/docs)\n\n## Getting started\n\nFirstly lets create a `index.js` file and add the following code. This will be your main file for your discord bot.\n\n```js\nconst { Client } = require('approxi');\n\n// Add configuration.\n// If you want to test your bot, consider adding your guild's id in the guilds property.\nconst config = { commands: { guilds: ['your-guild-id'] } };\n\n// Create a new client and add your config to it.\nconst client = new Client({ intents: ['GUILDS'] }, config);\n\n// Login to your bot as you would using discord.js.\nclient.login('discord-bot-token');\n```\n\nNow lets create a directory named `commands`, This will be where all your commands will be located.\n\nInside the `commands` directory, Add a new file named something like `ping.js`, In this guide we will make a ping command.\n\nInside the file add the following:\n```js\nconst { Command } = require('approxi');\n\n// Create a new command.\nmodule.exports = new Command(\n    // Add command data.\n    { name: 'ping', description: 'The ping command.' },\n    // Add a function to run when this command is used.\n\t(interaction) =\u003e interaction.reply('Pong!')\n);\n```\n\nAfter that, Lets make a new directory named `events`, This will be where all your events will be located.\n\nInside the `events` directory, Add a new file named something like `ready.js`, In this guide we will make a ready event.\n\nInside the file add the following:\n```js\nconst { Event } = require('approxi');\n\n// Create a new event.\nmodule.exports = new Event(\n\t// Add event data.\n\t{ name: 'ready', once: true },\n\t// Add a function to run when this event is emitted.\n\t(client) =\u003e console.log(`Logged in as ${client.user.tag}`)\n);\n```\n\nNow that we have a command and a event ready, We can now run the `index.js` file!\n\nCongratulations! You have made your very first discord bot using the Approxi framework!\n\n## TODO\n\n- Add documentation.\n- Create CLI.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDanieliusDev%2FApproxi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDanieliusDev%2FApproxi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDanieliusDev%2FApproxi/lists"}