{"id":18049956,"url":"https://github.com/apacheli/whirlybird","last_synced_at":"2026-02-26T21:34:23.203Z","repository":{"id":245588009,"uuid":"818408001","full_name":"apacheli/whirlybird","owner":"apacheli","description":"A JavaScript library for making Discord bots.","archived":false,"fork":false,"pushed_at":"2024-07-03T22:04:33.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T22:35:31.188Z","etag":null,"topics":["bot","bun","discord","discord-api","discord-bot","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://apache.li/whirlybird","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apacheli.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2024-06-21T19:37:27.000Z","updated_at":"2024-08-27T15:33:23.000Z","dependencies_parsed_at":"2024-10-20T19:05:14.887Z","dependency_job_id":null,"html_url":"https://github.com/apacheli/whirlybird","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"d44707c26884447f8118201687bfa8411d21f76b"},"previous_names":["apacheli/whirlybird"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apacheli%2Fwhirlybird","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apacheli%2Fwhirlybird/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apacheli%2Fwhirlybird/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apacheli%2Fwhirlybird/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apacheli","download_url":"https://codeload.github.com/apacheli/whirlybird/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240274451,"owners_count":19775459,"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":["bot","bun","discord","discord-api","discord-bot","javascript","typescript"],"created_at":"2024-10-30T21:09:53.993Z","updated_at":"2026-02-26T21:34:18.172Z","avatar_url":"https://github.com/apacheli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whirlybird\n\nA JavaScript library for making Discord bots.\n\n## Core\n\n- [`whirlybird/bot`](core/bot)\n- [`whirlybird/cache`](core/cache)\n- [`whirlybird/gateway`](core/gateway)\n- [`whirlybird/interactions`](core/interactions)\n- [`whirlybird/rest`](core/rest)\n- [`whirlybird/util`](core/util)\n\n## Install\n\nUsing Bun v1.1.15 (recommended):\n\n```sh\n$ bun install https://github.com/apacheli/whirlybird\n```\n\nUsing Deno v1.44.4:\n\n```js\nimport * as whirlybird from \"https://github.com/apacheli/whirlybird/raw/dev/core/lib.js\";\n```\n\nUsing Node.js v22.3.0:\n\n```sh\n$ npm i https://github.com/apacheli/whirlybird\n```\n\n## Example\n\n```js\nimport { CacheClient, GatewayClient, IntentFlags, RestClient } from \"whirlybird\";\n\nconst token = `Bot ${process.env.BOT_TOKEN}`;\n\nconst cache = new CacheClient();\nconst rest = new RestClient(token);\n\nconst handleEvent = (event, data) =\u003e {\n  cache.handleEvent(event, data);\n\n  switch (event) {\n    case \"MESSAGE_CREATE\": {\n      if (data.content === \"!ping\") {\n        rest.createMessage(data.channel_id, {\n          data: {\n            content: \"Pong!\",\n          },\n        });\n      }\n      break;\n    }\n  }\n};\n\nconst gateway = new GatewayClient(token, {\n  handleEvent,\n  identify: {\n    intents: IntentFlags.GUILD_MESSAGES | IntentFlags.MESSAGE_CONTENT,\n  },\n  token,\n  url: \"wss://gateway.discord.gg\",\n});\n\ngateway.connect();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapacheli%2Fwhirlybird","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapacheli%2Fwhirlybird","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapacheli%2Fwhirlybird/lists"}