franomai / discord-karma

A bot that allows users to give each other karma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

A bot that allows users to give each other karma


Languages

Language:Python 97.9%Language:Dockerfile 2.1%