Table of Contents
Otter Welcome Buddy has the intention of leverage human interaction with the persons in the discord to help them navigate trough all of our resources.
You need to install all the prerequisites before following with the instalation except Tox.
- Install our precommits configuration
pre-commit install
- Install all the dependencies for python
poetry install
- Install tox inside poetry's env
poetry shell # activate poetry env pip install tox
You need the following environmental variables either in a .env file under the root directory of this repository or directly added at your system (or your Docker instance):
DISCORD_TOKEN: the Discord Bot Token retrieved from the developer page.MONGO_URI: address of the MongoDB instance to be used, could be local or Cluster from Atlas.
If you want to use Docker with Docker-Compose, you need to take care of few extra steps.
Be sure to have this two technologies installed:
Add these variables in the "environment" (.env) file (additional to the ones required on the Configuration section).
- MONGO_ROOT_USERNAME: username to be created as root user with given credentials to manage MongoDB.
- MONGO_ROOT_PASSWORD: strong password to be used as credentials for
MONGO_ROOT_USERNAME. - MONGO_USERNAME: user that manage the connections of the application into the database.
- MONGO_PASSWORD: credentials configured to the user of the application.
⚠️ You can omit MONGO_URI because will be configured during the creation.
# Build and run the bot
docker-compose up -d- Activate your virtual environment
poetry shell
- Run the bot using:
poetry run python otter_welcome_buddy
- If you would like to run the build locally:
tox
- Link the repository to our project dashboard
- Add deepsource
- Add vale
- Enable logging
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/amazing-feature) - Open a Pull Request
This README was possible thanks to Best-README
