{"id":26520029,"url":"https://github.com/thesobersobber/discord-serverless-bot","last_synced_at":"2026-04-16T19:03:09.106Z","repository":{"id":155420059,"uuid":"620530199","full_name":"theSoberSobber/discord-serverless-bot","owner":"theSoberSobber","description":"serverless discord bot!","archived":false,"fork":false,"pushed_at":"2024-04-18T16:38:36.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T06:14:41.925Z","etag":null,"topics":["bot","discord-bot","discord-js","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/theSoberSobber.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":"2023-03-28T21:37:31.000Z","updated_at":"2023-06-20T08:15:53.000Z","dependencies_parsed_at":"2024-04-18T17:49:03.987Z","dependency_job_id":"3102f78e-5b6c-476b-929d-2c2969aba1d5","html_url":"https://github.com/theSoberSobber/discord-serverless-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theSoberSobber/discord-serverless-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theSoberSobber%2Fdiscord-serverless-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theSoberSobber%2Fdiscord-serverless-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theSoberSobber%2Fdiscord-serverless-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theSoberSobber%2Fdiscord-serverless-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theSoberSobber","download_url":"https://codeload.github.com/theSoberSobber/discord-serverless-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theSoberSobber%2Fdiscord-serverless-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31899986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bot","discord-bot","discord-js","serverless"],"created_at":"2025-03-21T11:38:40.913Z","updated_at":"2026-04-16T19:03:09.088Z","avatar_url":"https://github.com/theSoberSobber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting Started app for Discord\n\nThis project contains a basic discord bot that runs serverlessly and hence saves up on computing costs.\nIt doesn't need to be listening always and is triggered with the help of a webhook from the application and is verified using the Public key and the discord signature hash.\n\n[\u003cimg src=\"https://cdn.gomix.com/2bdfb3f8-05ef-4035-a06e-2043962a3a13%2Fremix-button.svg\" width=\"200px\" /\u003e](https://glitch.com/edit/#!/import/github/theSoberSobber/discord-serverless-bot)\n\n## Project structure\nBelow is a basic overview of the project structure:\n\n```\n├── abstractions    -\u003e short classes to make app making easier!\n│   ├── app.js  -\u003e final code\n│   ├── button.js\n│   ├── command.js\n│   ├── modal.js\n│   ├── selectMenu.js\n├── .env.sample -\u003e sample .env file for people wanting to reproduce\n├── app.js      -\u003e main entrypoint for app\n├── commands.js -\u003e slash command payloads + helpers\n├── game.js     -\u003e logic specific to RPS\n├── utils.js    -\u003e utility functions and enums\n├── package.json\n└── .gitignore\n```\n\n## Running app locally\n\nBefore you start, you'll need to install [NodeJS](https://nodejs.org/en/download/) and [create a Discord app and Bot](https://discord.com/developers/applications) with the proper permissions:\n- `applications.commands`\n- `bot` (with Send Messages enabled)\n\n### Setup project\n\nFirst clone the project:\n```\ngit clone https://github.com/theSoberSobber/discord-serverless-bot.git\n```\n\nThen navigate to its directory and install dependencies:\n```\ncd discord-serverless-bot\nnpm install\n```\n### Get app credentials\n\nFetch the credentials from your app's settings and add them to a `.env` file (see `.env.sample` for an example). You'll need your app ID (`APP_ID`), bot token (`DISCORD_TOKEN`), and public key (`PUBLIC_KEY`).\n\n### Install slash commands\n\nThe commands for the example app are set up in `commands.js`. All of the commands in the `ALL_COMMANDS` array at the bottom of `commands.js` will be installed when you run the `register` command configured in `package.json`:\n\n```\nnpm run register\n```\n\n### Run the app\n\nAfter your credentials are added, go ahead and run the app:\n\n```\nnode app.js\n```\n\n## Cron Job Deployment\n\n- Deployed on pipedream to run every 1 hour\n- [Deployment](https://pipedream.com/@mesosan/serverless-dc-bot-p_brCyAGa)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesobersobber%2Fdiscord-serverless-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesobersobber%2Fdiscord-serverless-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesobersobber%2Fdiscord-serverless-bot/lists"}