{"id":15840125,"url":"https://github.com/davealdon/aws-lambda-discord-bot","last_synced_at":"2025-04-01T17:18:57.802Z","repository":{"id":105658478,"uuid":"539651922","full_name":"DaveAldon/aws-lambda-discord-bot","owner":"DaveAldon","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-10T19:32:45.000Z","size":881,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T04:07:04.689Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DaveAldon.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":"2022-09-21T19:25:28.000Z","updated_at":"2022-09-23T15:29:28.000Z","dependencies_parsed_at":"2023-06-12T15:00:16.435Z","dependency_job_id":null,"html_url":"https://github.com/DaveAldon/aws-lambda-discord-bot","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/DaveAldon%2Faws-lambda-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2Faws-lambda-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2Faws-lambda-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2Faws-lambda-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaveAldon","download_url":"https://codeload.github.com/DaveAldon/aws-lambda-discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679061,"owners_count":20816402,"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-10-05T16:41:40.459Z","updated_at":"2025-04-01T17:18:57.781Z","avatar_url":"https://github.com/DaveAldon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Useful commands\n\n- `node register_commands/register.js` register slash commands with Discord - if Guild ID isn't present in .env, these will be deployed globally\n- `sam build \u0026\u0026 sam deploy --guided` deploys the bot to AWS Lambda\n- `node generate_template/generate.js` generates a CloudFormation template for the bot\n- `node generate_template/generate.js \u0026\u0026 \\ node register_commands/register.js \u0026\u0026 \\ sam build \u0026\u0026 sam deploy` deploys the bot after you add new commands to `src/modules/example/`\n  `sam destroy` cleans up\n\n# Troubleshooting\n\nCan't deploy?\n\n```\naws configure list\nnano ~/.aws/credentials\n```\n\nMake sure there is a mfa profile in the credentials file. If not, add one that looks like this:\n\n```\n[mfa]\naws_access_key_id = \u003cVALUE\u003e\naws_secret_access_key = \u003cVALUE\u003e\naws_session_token = \u003cVALUE\u003e\n```\n\nThen run the mfa script:\n\n```\nsh mfa.sh \u003cMFA_CODE\u003e\n```\n\n# Notes\n\nThis project contains source code and supporting files for a serverless application that you can deploy with the AWS Serverless Application Model (AWS SAM) command line interface (CLI). It includes the following files and folders:\n\n- `src` - Code for the application's Lambda function.\n- `events` - Invocation events that you can use to invoke the function.\n- `__tests__` - Unit tests for the application code.\n- `template.yaml` - A template that defines the application's AWS resources.\n\nResources for this project are defined in the `template.yaml` file in this project. The file has its own template generator. You can update the template to add AWS resources through the same deployment process that updates your application code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavealdon%2Faws-lambda-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavealdon%2Faws-lambda-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavealdon%2Faws-lambda-discord-bot/lists"}