Procházet zdrojové kódy

README update

master
LeoTheHuman před 7 roky
rodič
revize
0a70cd513b
2 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 8
    0
      README.md
  2. 1
    1
      make_data.sh

+ 8
- 0
README.md Zobrazit soubor

@@ -2,6 +2,14 @@

Quotes cards and rules of the Magic: the Gathering TCG.

# Howto:

$ ./make_data.sh
$ docker build -t <container-name> .
$ docker run <container-name>

# Commands

/o <card name or search strings> - oracle text for a card

/q <question> - oracle text for cards mentioned in the question

+ 1
- 1
make_data.sh Zobrazit soubor

@@ -1,5 +1,5 @@
#!/bin/sh
curl http://media.wizards.com/2018/downloads/MagicCompRules%2020181005.txt | iconv -f cp1251 -t utf8 > cr.txt
mkdir -p data
python3 scripts/update_cards.py
curl http://media.wizards.com/2018/downloads/MagicCompRules%2020181005.txt | iconv -f cp1251 -t utf8 > cr.txt
python3 scripts/update_cr.py

Načítá se…
Zrušit
Uložit