Browse Source

README update

master
LeoTheHuman 7 years ago
parent
commit
0a70cd513b
2 changed files with 9 additions and 1 deletions
  1. 8
    0
      README.md
  2. 1
    1
      make_data.sh

+ 8
- 0
README.md View File

@@ -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 View File

@@ -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

Loading…
Cancel
Save