Discord Bot for Cardfight Vanguard
*Running locally means you have to keep the python window open else the bot dies. Run on heroku to keep it alive.
-
Install Python 3.5 or higher
-
Install discord.py (python -m pip install -U discord.py)
-
Follow reactiflux's instructions
-
Clone or Download then extract this repository
-
Create a new file called "token.key", then paste the token generated from step 3 into the file (one line only)
-
The vanguard database is not installed by default. Run this to get the most recent:
import getcardinfo getcardinfo.updatedb(True)
-
Run cfvgbot.py and enjoy!
-
Install Python 3.5 or higher
-
Sign up for a free heroku account
-
run "pip install virtualenv"
-
Download and install the heroku CLI
-
Command line stuff. Mostly from the tutorials:
heroku login git clone https://github.com/NanoSmasher/cfvg-discordbot.git cd cfvg-discordbot
-
Follow reactiflux's instructions
-
Create a new file called "token.key", then paste the token generated from step 3 into the file (one line only)
-
The vanguard database is not installed by default. Run this to get the most recent:
import getcardinfo getcardinfo.updatedb(True)
-
Try this:
heroku create git push heroku master heroku ps:scale web=1
You should see your app on the dashboard. I had to turn on the free dyno feature. If you did some edits you'll need to update with:
git commit -a
git push heroku master
you can find logs in that specific app with:
heroku logs -n 20
heroku logs -t
- Hypergeometric Calculator for calculating card probabilities
- accepts BEDMAS operations using a shunting yard algorithm and reverse polish notation (rpn) interpreter, with custom operators
- avoids standard "eval" for safety
- Card Effects
submits a search request to cf-vanguard.com/cardlistDEPRECIATEDpulls data from the cf-vanguard card page- pulls data from the cardfight wiki
vbot cascadeodds vbot hgcc vbot quickodds vbot eval
* [[card name]] *