diff --git a/bot.py b/bot.py index b7a0f7fa..fc9ac424 100644 --- a/bot.py +++ b/bot.py @@ -437,7 +437,10 @@ def balurage(): print("@" + username + ": /balurage") # Rispondi commentando l'E3. tosend = str() - ragelevel = int(filemanager.readfile("ragelevel.txt")) + try: + ragelevel = int(filemanager.readfile("ragelevel.txt")) + except ValueError: + ragelevel = 0 ragelevel += 1 filemanager.writefile("ragelevel.txt", ragelevel) for rage in range(0, ragelevel): diff --git a/sm b/sm index 4780999b..6b3b2c53 160000 --- a/sm +++ b/sm @@ -1 +1 @@ -Subproject commit 4780999b7de8f2303a29da263280d33c41d485b9 +Subproject commit 6b3b2c53822aaa2391f3bb131e24453c910310e8