{"id":18569104,"url":"https://github.com/dainfloop/bdfd2djs","last_synced_at":"2025-05-15T21:09:07.345Z","repository":{"id":153648136,"uuid":"430082960","full_name":"DaInfLoop/BDFD2DJS","owner":"DaInfLoop","description":"It's required as bdfd2js but nobody cares","archived":false,"fork":false,"pushed_at":"2021-11-20T11:34:48.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T13:47:45.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DaInfLoop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-20T11:21:49.000Z","updated_at":"2023-02-06T06:47:28.000Z","dependencies_parsed_at":"2023-06-04T13:15:47.562Z","dependency_job_id":null,"html_url":"https://github.com/DaInfLoop/BDFD2DJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FBDFD2DJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FBDFD2DJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FBDFD2DJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FBDFD2DJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaInfLoop","download_url":"https://codeload.github.com/DaInfLoop/BDFD2DJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254422798,"owners_count":22068681,"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":[],"created_at":"2024-11-06T22:32:18.994Z","updated_at":"2025-05-15T21:09:07.243Z","avatar_url":"https://github.com/DaInfLoop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://repl.it/badge/github/dainfloop/bdfd2djs) ![](https://img.shields.io/github/stars/dainfloop/bdfd2djs.svg) ![](https://img.shields.io/github/forks/dainfloop/bdfd2djs.svg)\n\n# BDFD2DJS\nBDFD2DJS is an npm package that allows you to use Bot Designer for Discord's functions in normal `discord.js`.\n\nThe package exposes the following:\n\n\u003e BDFD#message()  \n\u003e BDFD#functions\n\nThe former can be called in your message event to set up your message object, while the latter shows you which functions you can use.\n\n## BDFD#message()\nParameters: \n\u003e message (type: Discord.Message)\n\n```js\n// client initalization above\nconst BDFD = require('bdfd2js')\n\n// I recommend you do it like this so you don't overwrite the original message object\nclient.on('message', (_) =\u003e {\n    const message = BDFD.message(_) // Return value is a new message object, read below\n})\n```\n\n### BDFD#message() return value\nThe return value is the original message object, but with a new function: `Message#code`  \nIt will execute any BDFD code and replace anything that is in `BDFD#functions`.\n\n```js\n// client initalization above\nconst BDFD = require('bdfd2js')\n\nclient.on('message', (_) =\u003e {\n    const message = BDFD.message(_)\n\n    const args = message.content.split(/ +/g)\n    const command = args.shift();\n\n    if (command == \"!hi\") {\n        message.channel.send(message.code(\"Hi \u003c@$authorID\u003e! 👋\"))\n    }\n})\n```\n\nTo read more on BDFD's functions, I recommend you read the function help in their app, which I have kindly linked here for [Google Play](https://play.google.com/store/apps/details?id=com.jakubtomana.discordbotdesinger\u0026utm_source=main_page\u0026pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1) and for the [App Store](https://apps.apple.com/us/app/bot-designer-for-discord/id1495536477).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdainfloop%2Fbdfd2djs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdainfloop%2Fbdfd2djs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdainfloop%2Fbdfd2djs/lists"}