mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Rinominata getsinglestaticdata
This commit is contained in:
parent
ecb03163dc
commit
ab1a38998d
2 changed files with 2 additions and 2 deletions
2
bot.py
2
bot.py
|
@ -617,7 +617,7 @@ while True:
|
||||||
str(ora.tm_year) + " " + str(ora.tm_hour) + ":" + str(ora.tm_min) + "`\n"
|
str(ora.tm_year) + " " + str(ora.tm_hour) + ":" + str(ora.tm_min) + "`\n"
|
||||||
r = lol.getfreerotation()
|
r = lol.getfreerotation()
|
||||||
for champion in r:
|
for champion in r:
|
||||||
staticdata = lol.getsinglestaticdata(champion['id'])
|
staticdata = lol.getchampionstaticdata(champion['id'])
|
||||||
lolfreestring += "*" + staticdata['name'] + "* " + staticdata['title'] + '\n'
|
lolfreestring += "*" + staticdata['name'] + "* " + staticdata['title'] + '\n'
|
||||||
print("Completato.")
|
print("Completato.")
|
||||||
telegram.sendmessage(lolfreestring, sentin, source)
|
telegram.sendmessage(lolfreestring, sentin, source)
|
||||||
|
|
2
lol.py
2
lol.py
|
@ -4,7 +4,7 @@ import filemanager
|
||||||
lolkey = filemanager.readfile("lolapi.txt")
|
lolkey = filemanager.readfile("lolapi.txt")
|
||||||
|
|
||||||
|
|
||||||
def getsinglestaticdata(cid, extra=None):
|
def getchampionstaticdata(cid, extra=None):
|
||||||
parametri = {
|
parametri = {
|
||||||
'api_key': lolkey,
|
'api_key': lolkey,
|
||||||
'region': "euw",
|
'region': "euw",
|
||||||
|
|
Loading…
Reference in a new issue