Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.13 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.13 KB

Karma Bot for Discord

Install

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

Bot Setup

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 intent setting image

Use

pipenv run python -m karma.bot -t <discord-bot-token>

Test

pipenv run pytest

Build the docker container

  1. You can build the docker container and push to a registry if you'd like
  2. Run the following:
docker build -t <registry>/discord-karma:1.0.0
docker push <registry>/discord-karma:1.0.0

Run on Kubernetes

  1. 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.
  2. Run the following to run it on Kubernetes
kubectl apply -f deployment.yaml