https://github.com/3ventic/botventic-serverless
https://github.com/3ventic/botventic-serverless
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/3ventic/botventic-serverless
- Owner: 3ventic
- License: mit
- Created: 2022-08-31T08:19:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-31T08:31:45.000Z (almost 4 years ago)
- Last Synced: 2025-01-31T16:15:57.518Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# botventic-serverless
The 2022-onwards codebase for BotVentic using Lambda to support slash-commands in Discord. [Add the bot to your Discord](https://discord.com/oauth2/authorize?client_id=174449568304332800&scope=applications.commands) or [join the official Discord](https://3v.fi/s/ohbot-discord).
## Contributing
Pull requests are generally welcome, especially for bug fixes and the like. For new features, please propose via Discord or GH issues before doing any work on it.
## Infrastructure setup
1. Create a Lambda function on AWS using the matching Node runtime and set up environment variables (see index.js for a list).
2. Create an API Gateway endpoint with a POST method using an integration with the Lambda as its target.
3. Zip the repository, including node_modules.
4. Update the Lambda code using the zip.
5. Enter the API Gateway endpoint URL + path into your registered Discord application as the integration endpoint.
6. Run index.js once with envvar UPDATE_SLASH_COMMANDS=true to make Discord pick up changes to the supported slash commands