{"id":21855590,"url":"https://github.com/zeropsio/recipe-discord-nodejs","last_synced_at":"2026-04-13T16:03:44.728Z","repository":{"id":249279023,"uuid":"820748496","full_name":"zeropsio/recipe-discord-nodejs","owner":"zeropsio","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-02T15:03:09.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-01T13:40:47.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zeropsio.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":"2024-06-27T05:30:02.000Z","updated_at":"2025-05-02T15:03:12.000Z","dependencies_parsed_at":"2024-08-17T09:26:17.989Z","dependency_job_id":"8827d4ec-cf97-4e2f-a6c9-05ddf8fab4d8","html_url":"https://github.com/zeropsio/recipe-discord-nodejs","commit_stats":null,"previous_names":["zeropsio/recipe-discordjs","zeropsio/recipe-discordjs-nodejs","zeropsio/recipe-discord-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeropsio/recipe-discord-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-discord-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-discord-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-discord-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-discord-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeropsio","download_url":"https://codeload.github.com/zeropsio/recipe-discord-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-discord-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-28T02:16:30.442Z","updated_at":"2026-04-13T16:03:44.701Z","avatar_url":"https://github.com/zeropsio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zerops x Discord.js - Node.js\n\nDiscord.js is a powerful module that allows you to interact with the Discord API very easily.  This is the most bare-bones example of [Discord.js](https://discord.js.org) bot running on Zerops Node.js Runtime with a single /ping command.\n\n![discordjs](https://github.com/zeropsio/recipe-shared-assets/blob/main/covers/svg/cover-discordjs.svg)\n\n\u003cbr/\u003e\n\n## Deploy to Zerops\n\nYou can either click the deploy button to deploy directly on Zerops, or manually copy the [import yaml](https://github.com/zeropsio/recipe-discordjs-nodejs/blob/main/zerops-project-import.yml) to the import dialog in the Zerops app.\n\n\u003cbr/\u003e\n\n\u003e [!WARNING]\n\u003e You'll encounter some runtime errors if `DISCORD_CLIENT_ID` and `DISCORD_TOKEN` are not set in the environment variables.\n\n\u003cbr/\u003e\n\n[![Deploy on Zerops](https://github.com/zeropsio/recipe-shared-assets/blob/main/deploy-button/green/deploy-button.svg)](https://app.zerops.io/recipe/discordjs)\n\n\u003cbr/\u003e\n\n## Recipe features\nLatest version of Discord.js running on a load balanced **Zerops Node.js** service.\n\n\u003cbr/\u003e\n\n[Click here](https://app.zerops.io/recipe/discord-nodejs) to test Discord bot on every available runtime examples.\n\n## Setting up Environment Variables\n\nThe steps mentioned here are to be followed after deploying the app and will guide you on how to obtain the two required environment variables to run your Discord.js Bot.\n\n1. Go to the [Discord Application Portal](https://discord.com/developers/applications). Create an application if you do not have one already.\n\n- Copy the application ID from the General Information section (sidebar). This will be used for `DISCORD_CLIENT_ID`.\n- Go to the Bot section (sidebar), reset the token, and copy the token. This will be used for `DISCORD_TOKEN`.\n\nNow you have both environment variables.\n\n2. Head to your service. If you have full mode, check your sidebar and click on Environment Variables. On that page, you will see an \"edit multiple secret variables in .env format\" button. Click on it, paste your environment variables in the format shown below, and click on Update Secret Variables. You will then see a button to commit your changes.\n\n```env\n# Note: This is just an example dont use it ^_^\nDISCORD_TOKEN=1226434606118965270 # Your token copied from the bot section\nDISCORD_CLIENT_ID=MTIyNjQ3NDYwNjExODk2NTI3MA.GtSgOF.W7wLWibfGtP2tobLv_DsbFKdjlGmOwzxliTejI # Your application ID copied from the General Information section\n```\n\n## Production vs. development\nThis recipe is ready for production as is, and will scale horizontally by adding more containers in case of high traffic surges. If you want to achieve the highest baseline reliability and resiliace, start with at least two containers (add `minContainers: 2` in recipe YAML in the `bot` service section, or change the minimum containers in \"Automatic Scaling configuration\" section of service detail).\n\n\u003cbr/\u003e\n\n## Changes made over the default installation\nIf you want to modify your existing Discord.js bot to efficiently run on Zerops, there are no changes needed in the codebase on top of the standard installation, just add [zerops.yml](https://github.com/zeropsio/recipe-discordjs-nodejs/blob/main/zerops.yml) to your repository.\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\nNeed help setting your project up? Join [Zerops Discord community](https://discord.com/invite/WDvCZ54).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-discord-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeropsio%2Frecipe-discord-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-discord-nodejs/lists"}