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

To call the bot, use slash commands: /card followed by a card name. Make sure you use the name autocompletion or you might not get the result you want. By default, the bot answers to you with a private message other members do not see. You can use the optional public paramater to your slash command to make the message visible for everyone in the channel.

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-4.5.tar.gz (756.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krcg_bot-4.5-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file krcg_bot-4.5.tar.gz.

File metadata

  • Download URL: krcg_bot-4.5.tar.gz
  • Upload date:
  • Size: 756.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for krcg_bot-4.5.tar.gz
Algorithm Hash digest
SHA256 0896c8ffb8cff5e6effd6b38795ff068514bcd8c217393a56d28bccc61b3a099
MD5 126ca79dd4f8e8574dc4c8bc1d84000d
BLAKE2b-256 8bddd914bfc29f96494cd110eefbc3186e453a49f836472c37c473be0f324757

See more details on using hashes here.

File details

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

File metadata

  • Download URL: krcg_bot-4.5-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for krcg_bot-4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c49bbcba75e67e4d319e24732faeea72f3dcdae5758ae4212067c14d044571c4
MD5 b2719c16863f64984646e63b47e65ff9
BLAKE2b-256 9003bd93c219afc43beba4f5a46ca93ac3ed1e0654b4b94416006dd1aa86fd07

See more details on using hashes here.

Supported by

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