forked from HonusBot/HonusBot
Arves merda
This commit is contained in:
parent
63932c224a
commit
62caedbafd
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user