min maius maiusc min

This commit is contained in:
Christian Rendina 2020-05-05 17:31:36 +02:00
parent 1778aeab50
commit a2b305895d
1 changed files with 11 additions and 11 deletions

View File

@ -117,10 +117,10 @@ class Config:
def jsonasResponse(dct): def jsonasResponse(dct):
print("LOG:::",str(dct)) print("LOG:::",str(dct))
if "imageUrl" in dct: if "imageurl" in dct:
return JSONResponse(dct["authorized"], dct["success"], dct["imageUrl"], "") return JSONResponse(dct["authorized"], dct["success"], dct["imageurl"], "")
elif "htmlDescription" in dct: elif "htmldescription" in dct:
return JSONResponse(dct["authorized"], dct["success"], "", dct["htmlDescription"]) return JSONResponse(dct["authorized"], dct["success"], "", dct["htmldescription"])
else: else:
raise Exception("Invalid JSON") raise Exception("Invalid JSON")
@ -138,13 +138,13 @@ class InlineBot:
self.config.read("config.ini") self.config.read("config.ini")
def __makeCommands(self): def __makeCommands(self):
self.commands.append(Command("Pony", "yay, ponies!", "imageurl", "imageUrl")) self.commands.append(Command("Pony", "yay, ponies!", "imageurl", "imageurl"))
self.commands.append(Command("Clop", "NSFW ponies", "imageurl", "imageUrl")) self.commands.append(Command("Clop", "NSFW ponies", "imageurl", "imageurl"))
self.commands.append(Command("Furry", "Furries", "imageurl", "imageUrl")) self.commands.append(Command("Furry", "Furries", "imageurl", "imageurl"))
self.commands.append(Command("Loli", "Cute lolis", "imageurl", "imageUrl")) self.commands.append(Command("Loli", "Cute lolis", "imageurl", "imageurl"))
self.commands.append(Command("Yiff", "Yiff", "imageurl", "imageUrl")) self.commands.append(Command("Yiff", "Yiff", "imageurl", "imageurl"))
self.commands.append(Command("Lewd", "Say hi to the police", "imageurl", "imageUrl")) self.commands.append(Command("Lewd", "Say hi to the police", "imageurl", "imageurl"))
self.commands.append(Command("Rasoio", "Dai facciamogli lo scherzo del rasoio!1!!", "genericurl", "htmlDescription")) self.commands.append(Command("Rasoio", "Dai facciamogli lo scherzo del rasoio!1!!", "genericurl", "htmldescription"))
self.cancerCommand = Command("Cancer", "Search cancer", "imageurl", "imageurl") self.cancerCommand = Command("Cancer", "Search cancer", "imageurl", "imageurl")
def callRequest(self, command, senderid, text = ""): def callRequest(self, command, senderid, text = ""):