league of legends spell check timer board.
- node.js installed
git clone https://github.com/hanarotg/spell.team.git
npm i
create .env
file in root directory, and add three environment variables.
to get API KEYS, visit riot developer portal and generate development/product key.
API_KEY=your-api-key
LOL_SUMMONER_URL=summoner-api-url
LOL_SPECTATOR_URL=spectator-api-url
.env
example
API_KEY=RGAPI-e666251c-fc4e-4551-837a-18014b83c6ac
LOL_SUMMONER_URL=https://kr.api.riotgames.com/lol/summoner/v4/summoners/by-name
LOL_SPECTATOR_URL=https://kr.api.riotgames.com/lol/spectator/v4/active-games/by-summoner
you may update verion
, region
, download directories in /data/automatch.js
- Riot developer portal - league of legends - version
- Riot developer portal - league of legends - region
- Riot developer portal - league of legends - languages
// common settings
const version = "12.16.1";
const region = "en_US";
const spells_dir = path.join(__dirname, "spells");
const champions_dir = path.join(__dirname, "champions");
/data/automatch.js
will download lastest version of spell and champion images to /data
directory named with spellID and championID.
cd data
node automatch.js
[spell_cooldown] 저장 완료
[fs] 3.png (SummonerExhaust) 파일 업로드 성공
[fs] 39.png (SummonerSnowURFSnowball_Mark) 파일 업로드 성공
[fs] 4.png (SummonerFlash) 파일 업로드 성공
...
[fs] 82.png (Mordekaiser) 파일 업로드 성공
[fs] 240.png (Kled) 파일 업로드 성공
[fs] 150.png (Gnar) 파일 업로드 성공
/data/spell.js
will print spellcooldown object
cd data
node spell.js
21 Barrier 180
1 Cleanse 210
14 Ignite 180
...
'21': { name: 'Barrier', cooldown: 180 },
'30': { name: 'To the King!', cooldown: 10 },
'31': { name: 'Poro Toss', cooldown: 20 },
'32': { name: 'Mark', cooldown: 80 },
'39': { name: 'Mark', cooldown: 80 },
'54': { name: 'Placeholder', cooldown: 0 },
'55': { name: 'Placeholder and Attack-Smite', cooldown: 0 }
}
spell.team will run in localhost:3000
node app.js
yes.