riotapi-int
Version:
NodeJS integration for RiotAPI
90 lines (86 loc) • 2.02 kB
JavaScript
const RESPONSE_ERRORS = {
"400": "Bad request",
"401": "Unauthorized",
"403": "Forbidden",
"404": "Data not found",
"405": "Method not allowed",
"415": "Unsupported media type",
"429": "Rate limit exceeded",
"500": "Internal server error",
"502": "Bad gateway",
"503": "Service unavailable",
"504": "Gateway timeout"
};
const REGION = {
brazil: "br1",
europe_nordic_and_east: 'eune1',
europe_west: 'euw',
japan: 'jp1',
korea: 'kr',
latin_america_north: 'la1',
latin_america_south: 'la2',
north_america: "na1",
oceania: 'oc1',
turkey: 'tr1',
russia: 'ru1',
public_beta_environment: 'pbe1',
};
// Incomplete
const QUEUE = {
custom_game: 0,
snowdown_showdown_1v1: 72,
snowdown_showdown_2v2: 73,
hexakill_summoners_rift: 75,
URF: 76,
one_for_all: 78,
URF_bot: 83,
hexakill_twisted_treeline: 98,
ARAM_butcher_bridge: 100,
nemesis: 310,
black_market_brawlers: 313,
definitely_not_dominion: 317,
all_random: 325,
draft_pick_5v5: 400, // AKA normal game
ranked_solo_5v5: 420,
blind_pick_5v5: 430,
ranked_flex_5v5: 440,
ARAM: 450,
blind_pick_3v3: 460,
ranked_flex_3v3: 470,
blood_hunt_assassin: 600,
dark_star_singularity: 610,
clash: 700,
bot_intermediate_twisted_treeline: 800,
bot_intro_twisted_treeline: 810,
bot_beginner_twisted_treeline: 820,
bot_intro: 830,
bot_beginner: 840,
bot_intermediate: 850,
ARURF: 900,
ascension: 910,
legend_of_the_poro: 920,
nexus_siege: 940,
doom_bots_voting: 950,
doom_bots_standard: 960,
star_guardian_normal: 980,
star_guardian_onslaught: 990,
};
const SEASON = {
0: 'PRESEASON 3',
1: 'SEASON 3',
2: 'PRESEASON 2014',
3: 'SEASON 2014',
4: 'PRESEASON 2015',
5: 'SEASON 2015',
6: 'PRESEASON 2016',
7: 'SEASON 2016',
8: 'PRESEASON 2017',
9: 'SEASON 2017',
10: 'PRESEASON 2018',
11: 'SEASON 2018',
};
module.exports = {
RESPONSE_ERRORS,
REGION,
SEASON,
};