diff --git a/bot.py b/bot.py index 9596002c..92e6a24d 100644 --- a/bot.py +++ b/bot.py @@ -617,7 +617,7 @@ while True: str(ora.tm_year) + " " + str(ora.tm_hour) + ":" + str(ora.tm_min) + "`\n" r = lol.getfreerotation() for champion in r: - staticdata = lol.getsinglestaticdata(champion['id']) + staticdata = lol.getchampionstaticdata(champion['id']) lolfreestring += "*" + staticdata['name'] + "* " + staticdata['title'] + '\n' print("Completato.") telegram.sendmessage(lolfreestring, sentin, source) diff --git a/lol.py b/lol.py index 583019c2..0217c4b8 100644 --- a/lol.py +++ b/lol.py @@ -4,7 +4,7 @@ import filemanager lolkey = filemanager.readfile("lolapi.txt") -def getsinglestaticdata(cid, extra=None): +def getchampionstaticdata(cid, extra=None): parametri = { 'api_key': lolkey, 'region': "euw",