瀏覽代碼

README update

master
LeoTheHuman 7 年之前
父節點
當前提交
0a70cd513b
共有 2 個檔案被更改,包括 9 行新增1 行删除
  1. 8
    0
      README.md
  2. 1
    1
      make_data.sh

+ 8
- 0
README.md 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存