virtualenvmust be installed to create a virtual environment for Python 3.11.- To install
virtualenv, run$ python3 -m pip install virtualenv - To create a virtual environment, run
$ python3.11 -m virtualenv venv - To activate a virtual environment, run
$ source venv/bin/activate. To exit a virtual environment, run$ deactivate -
Running
update_command.pylocally would require you to create./secrets/discord_bot.jsonfile with the Discord credentials. For example,{ "bot_token": "BOT TOKEN HERE", "app_id": "APP ID HERE", "server_id": "SERVER ID HERE", "public_key": "PUBLIC KEY HERE" }
- This project uses
poetryto manage dependencies- Within the virtual env, run
$ poetry installto install dependencies
- Within the virtual env, run
- On push event to the
mainbranch, GitHub Actions triggers a deployment job that uploads the updated code to AWS Lambda - AWS Lambda with AWS API Gateway