Arves merda

This commit is contained in:
Christian Rendina 2020-03-11 02:01:37 +01:00
parent 63932c224a
commit 62caedbafd
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ class InlineBot:
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")
def callRequest(self, command, senderid, text = ""): def callRequest(self, command, senderid, text = ""):
if not command: if not command:
@ -191,6 +192,7 @@ class InlineBot:
for command in self.commands: for command in self.commands:
results.append(self.makeResult(command, senderid)) results.append(self.makeResult(command, senderid))
else: else:
self.cancerCommand.setDesc("Search cancer about " + query)
results.append(self.makeResult(self.cancerCommand, senderid, query)) results.append(self.makeResult(self.cancerCommand, senderid, query))
context.bot.answer_inline_query(update.inline_query.id, results, 1, False) context.bot.answer_inline_query(update.inline_query.id, results, 1, False)