This project uses pipenv and requires Python 3.6. Karma Bot is installed in the following way:
pip install pipenv # if you don't have it already
pipenv install
This bot uses the privileged server member intent to attach usernames to ids. This can be set up in the Discord Developer Portal from Applications > Bot > Privileged Gateway Intents > Server Members Intent
pipenv run python -m karma.bot -t <discord-bot-token>
pipenv run pytest
- You can build the docker container and push to a registry if you'd like
- Run the following:
docker build -t <registry>/discord-karma:1.0.0
docker push <registry>/discord-karma:1.0.0
- Open the deployment.yaml and add your TOKEN at the specific line and
change the location of the
image:
to a publicly accessable version built. - Run the following to run it on Kubernetes
kubectl apply -f deployment.yaml