Skip to content

Your friendly Yu-Gi-Oh! OCG bot running on discord to help you find cards' price in English

Notifications You must be signed in to change notification settings

punparin/solomon-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solomon-bot

Your friendly Yu-Gi-Oh! OCG bot running on discord to help you find cards' price in English. The price references are scraped from bigweb and YUYU-TEI.

solomon-showcase

For development

Setup development environment

virtualenv venv
# For fish
source venv/bin/activate.fish
# For shell
source venv/bin/activate
pip install -r requirements.txt

Environment variables

# .env
DISCORD_TOKEN=<TOKEN>
SOLOMON_API_ENDPOINT=https://solomon.pks.sh
ELASTICSEARCH_ENDPOINT=<ELASTICSEARCH_ENDPOINT>
BIGWEB_ICON=https://bigweb.co.jp/inc/space2.gif
YUYUTEI_ICON=https://yuyu-tei.jp/img/ogp.jpg

Running on local

# Run on machine
python src/main.py

# Run on docker
earthly +compose-up
earthly +compose-down

Release

earthly --build-arg TAG=<TAG> --push +release