Skip to main content

"Discord bot for VTES cards",

Project description

KRCG Discord Bot

PyPI version Validation Python version License Code Style

A discord bot to display V:tES cards, using the VEKN official card texts and KRCG rulings list.

Portions of the materials are the copyrights and trademarks of Paradox Interactive AB, and are used with permission. All rights reserved. For more information please visit white-wolf.com.

Dark Pack

Use it

This bot lets you retrieve cards official text, image and rulings: Bot Example

It is online and free to use, install it on your Discord server.

Contribute

Contributions are welcome !

This bot is an offspring of the KRCG python package, so please refer to that repository for issues, discussions and contributions guidelines.

Hosting the bot

If you need to host a new version of the bot yourself, Python 3 is required, as well as an environment variable DISCORD_TOKEN. The token can be found on your Discord applications page.

The preferred way to run the bot is to use a python virtualenv:

/usr/bin/python3 -m venv venv
source venv/bin/activate
pip install krcg-bot
DISCORD_TOKEN=discord_token_of_your_bot
krcg-bot

A systemd unit can be used to configure the bot as a system service:

[Unit]
Description=krcg-bot
After=network-online.target

[Service]
Type=simple
Restart=always
WorkingDirectory=directory_where_krcg_is_installed
Environment=DISCORD_TOKEN=discord_token_of_your_bot
ExecStart=/bin/bash -c 'source venv/bin/activate && krcg-bot'

[Install]
WantedBy=multi-user.target

For development, the environment variable DISCORD_TOKEN can be provided by a personal .env file at the root of the krcg folder (ignored by git):

export DISCORD_TOKEN="discord_token_of_your_bot"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krcg-bot-2.7.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

krcg_bot-2.7-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file krcg-bot-2.7.tar.gz.

File metadata

  • Download URL: krcg-bot-2.7.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2

File hashes

Hashes for krcg-bot-2.7.tar.gz
Algorithm Hash digest
SHA256 8cae65611c538ffc5450a7b6c1b19dfa5bfc6fd7eb2995d92d3749dd05ab396e
MD5 9b757bc03a4ffa3a6ea96da3fcb5ffbe
BLAKE2b-256 ee4b92a86eaac7bcd0ae1bbb7d97b63ac565b014ec48a96f6420be357111dba5

See more details on using hashes here.

File details

Details for the file krcg_bot-2.7-py3-none-any.whl.

File metadata

  • Download URL: krcg_bot-2.7-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2

File hashes

Hashes for krcg_bot-2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b9de64a1923e8ddb5660448a712b5f30eaada58191f5ae0e06722e45d8d94cc3
MD5 eaf7d5171e4ef4f5246e5c138a08212c
BLAKE2b-256 7200cdb0b935a20ae2766fee48a46491d9ac63de4a99aca0f88e6926b3924009

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page