From 7572e3c5fcfa9d53e410eb6a20c8f37f45732812 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 11 Aug 2015 00:17:23 +0200 Subject: [PATCH] Bugfix --- royalbot.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/royalbot.py b/royalbot.py index fb54db52..a034671e 100644 --- a/royalbot.py +++ b/royalbot.py @@ -93,9 +93,9 @@ def getSteamStatus(steamid): return r #Caricamento delle API Keys -token = readFile(telegramapi.txt) -steamtoken = readFile(steamapi.txt) -osutoken = readFile(osuapi.txt) +token = readFile('telegramapi.txt') +steamtoken = readFile('steamapi.txt') +osutoken = readFile('osuapi.txt') #Il loop del bot while(True): @@ -116,8 +116,6 @@ while(True): if(msg['text'] == "/steam"): sendMessage(unichr(9888) + " Non hai specificato uno SteamID o un username!", msg['chat']['id'], msg['from']['id']) else: - #Elenco degli steamid e degli username di telegram. - global steamids #Controlla se la selezione รจ un username di telegram. if(msg['text'][7:] in steamids ): selezione = steamids[msg['text'][7:]]