- Clone the repository:
-
git clone https://github.com/Arnav-2004/untitled-bot.git
orgit clone git@github.com:Arnav-2004/untitled-bot.git
-
Github CLI:
gh repo clone Arnav-2004/untitled-bot
-
cd untitled-bot/
and create a new branch:git checkout -b <name of your new local branch> main
orgit switch -c <name of your new local branch> main
-
Using poetry
Install poetry: pip install -U poetry
# Install the project and development dependencies
poetry install
# Install the pre-commit hooks
poetry run task precommit
poetry run task lint
# Run the source code
poetry run task bot
- Using Docker (Recommended):
Install Docker: Follow the official documentation
Install docker-compose: pip install -U docker-compose
# Make sure docker service is running before executing the following command.
docker-compose up --build
# use -d flag for detached mode
docker-compose up
# Use Ctrl+C if not in detached mode
docker-compose stop
# Use -v or --volumes flag to remove volumes
docker-compose down
- Lint and format your code using
poetry run task lint
and push the changesgit push -u origin <name of your remote branch>