{"id":20235355,"url":"https://github.com/inkohx/discord-feed-worker","last_synced_at":"2025-04-10T18:54:54.107Z","repository":{"id":65097788,"uuid":"581490271","full_name":"InkoHX/discord-feed-worker","owner":"InkoHX","description":"Send feed content to Discord using Cloudflare Workers.","archived":false,"fork":false,"pushed_at":"2025-04-04T03:07:48.000Z","size":130,"stargazers_count":2,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T04:19:36.006Z","etag":null,"topics":["cloudflare-workers","discord"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InkoHX.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-23T10:42:42.000Z","updated_at":"2023-01-23T14:13:31.000Z","dependencies_parsed_at":"2023-10-11T04:27:25.093Z","dependency_job_id":"840ed201-611c-4867-a7a7-ca625db7b864","html_url":"https://github.com/InkoHX/discord-feed-worker","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/InkoHX%2Fdiscord-feed-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InkoHX%2Fdiscord-feed-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InkoHX%2Fdiscord-feed-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InkoHX%2Fdiscord-feed-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InkoHX","download_url":"https://codeload.github.com/InkoHX/discord-feed-worker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248275688,"owners_count":21076647,"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":["cloudflare-workers","discord"],"created_at":"2024-11-14T08:16:03.071Z","updated_at":"2025-04-10T18:54:54.082Z","avatar_url":"https://github.com/InkoHX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord-feed-worker\n\n[![CI](https://github.com/InkoHX/discord-feed-worker/actions/workflows/ci.yml/badge.svg)](https://github.com/InkoHX/discord-feed-worker/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/InkoHX/discord-feed-worker/branch/main/graph/badge.svg?token=PH7GI3DLM2)](https://codecov.io/gh/InkoHX/discord-feed-worker)\n\nSend feed content to Discord using Cloudflare Workers.\n\n## Supports\n\n- RSS\n- Atom\n- JSON Feed\n\nThanks [`@extractus/feed-extractor`](https://github.com/extractus/feed-extractor)\n\n## Deploy\n\n```sh\n# Clone this repo\ngit clone https://github.com/InkoHX/discord-feed-worker.git\ncd ./discord-feed-worker\n\n# Install dependencies.\npnpm i --frozen-lockfile\n\n# Required\necho \"Following feed url\" | npx wrangler secret put \"FEED_URL\"\necho \"Your discord bot token here\" | npx wrangler secret put \"DISCORD_TOKEN\"\necho \"Your text channel id here\" | npx wrangler secret put \"CHANNEL_ID\"\n\n# Optional\n# The `CROSSPOST` option can only be enabled if the channel specified by `CHANNEL_ID` is an announcement channel.\n# echo \"ON\" | npx wrangler secret put \"CROSSPOST\"\n# If the `CREATE_THREAD` option is enabled, a thread will be created for the feed you send.\n# echo \"ON\" | npx wrangler secret put \"CREATE_THREAD\"\n\n# Deploy\npnpm run deploy\n```\n\n## Development\n\n```sh\n# Install dependencies.\npnpm i --frozen-lockfile\n\n# Create local.env\ncp ./.dev.vars.example ./.dev.vars\n\n# Launch dev server\npnpm run dev\n```\n\n## FAQ\n\n### Can I change from every 3 hours to every n hours?\n\nYes, as an example, to change every hour, rewrite `triggers.crons` in `wrangler.toml` as `0 * * * *` and replace `10_800_000` set in the date constant in `src/index.ts` with `3_600_000`.\n\n### What permissions must I give my Discord bot?\n\n`Read Messages/View Channels` and `Send Messages` are required, but additional permissions are needed depending on the options you enable (e.g., `CROSSPOST`).\n\n| Options       | Require permissions    |\n| ------------- | ---------------------- |\n| CROSSPOST     | `Manage Messages`      |\n| CREATE_THREAD | `Create Public Thread` |\n\n## Author\n\n- [InkoHX](https://github.com/InkoHX)\n\n## LICENSE\n\n```text\nMIT License\n\nCopyright (c) 2022 InkoHX\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkohx%2Fdiscord-feed-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finkohx%2Fdiscord-feed-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkohx%2Fdiscord-feed-worker/lists"}