A card lookup bot for r/shadowverse subreddit
Clone the project
git clone https://github.com/zxt/shadowverse-cardbot.git
The bot requires a sqlite db file to lookup the cards. You can get one if you go to this repo and either use the scripts or just download the cards.db file there.
Go to the project directory
cd shadowverse-cardbot
Install dependencies
pip install -r requirements.txt
The bot uses PRAW to access the reddit API, so a praw.ini
needs to be configured:
copy praw.ini.example praw.ini
vi praw.ini
Go through settings.py
and adjust as needed. In particular you should change SUBREDDITS
to set which subreddits the bot will monitor, and CARD_DB
to point to the cards.db
file you previously set up/downloaded.
vi settings.py
Finally, start the bot!
python3 -u cardbot.py
There are tests written in pytest under tests/
.
To run tests, run the following command at the root directory of the project:
pytest
- python3
- PRAW
- pytest
- shadowverse-portal