Skip to content

Commit

Permalink
More champions & bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EwyBoy committed Nov 2, 2021
1 parent ba7be5a commit 0da93c0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
13 changes: 13 additions & 0 deletions champions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"aatrox",
"ahri",
"akali",
"akshan",
"alistar",
"amumu",
"anivia",
"annie",
"aphelios",
"ashe",
"aurelionsol",
"azir",
Expand Down Expand Up @@ -35,6 +37,7 @@
"gnar",
"gragas",
"graves",
"gwen",
"hecarim",
"heimerdinger",
"illaoi",
Expand Down Expand Up @@ -62,6 +65,7 @@
"leblanc",
"leesin",
"leona",
"lillia",
"lissandra",
"lucian",
"lulu",
Expand All @@ -86,16 +90,22 @@
"pantheon",
"poppy",
"pyke",
"qiyana",
"quinn",
"rakan",
"rammus",
"reksai",
"rell",
"renekton",
"rengar",
"riven",
"rumble",
"ryze",
"samira",
"sejuani",
"senna",
"seraphine",
"sett",
"shaco",
"shen",
"shyvana",
Expand Down Expand Up @@ -126,6 +136,7 @@
"veigar",
"velkoz",
"vi",
"viego",
"viktor",
"vladimir",
"volibear",
Expand All @@ -136,7 +147,9 @@
"xerath",
"xinzhao",
"yasuo",
"yone",
"yorick",
"yuumi",
"zac",
"zed",
"ziggs",
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
**v2.0.1**
* Fixed a bug where lane and chanp where swapped
* Even more code clean up

**v2.0.0**
* Ported to run on Python 3.x
* Code cleanup
Expand Down
Binary file modified opgg.exe
Binary file not shown.
12 changes: 7 additions & 5 deletions src/opgg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import readline


# VERSION: 2.0.0
# VERSION: 2.1.0
# Made by Ewy 16.10.2018
# Last Update: 02.11.2021

Expand Down Expand Up @@ -50,18 +50,20 @@ def getLane():
return lane


def getLink(lane, champ):
def getLink(champ, lane):
if lane == 'aram':
url = 'https://euw.op.gg/aram/' + champ + '/statistics/450/build'
return 'https://euw.op.gg/aram/' + champ + '/statistics/450/build'
else:
url = 'https://euw.op.gg/champion/' + champ + '/statistics/' + lane
return 'https://euw.op.gg/champion/' + champ + '/statistics/' + lane


def openLink(url):
webbrowser.open(url)


if __name__ == '__main__':
print('OP.GG LOOKUP\n')

while True:
getLink(getLane(), getChamp())
openLink(getLink(getChamp(), getLane()))
print('')

0 comments on commit 0da93c0

Please sign in to comment.