forked from HonusBot/HonusBot
Fix
This commit is contained in:
parent
615bcb244e
commit
c759ddab76
44
inline.py
44
inline.py
@ -17,6 +17,12 @@ class Command:
|
||||
self.headerField = ""
|
||||
self.mode = ""
|
||||
|
||||
def __init__(self, name, desc, mode, hf):
|
||||
self.desc = desc
|
||||
self.name = name
|
||||
self.headerField = hf
|
||||
self.mode = mode
|
||||
|
||||
def setMode(self, mode):
|
||||
self.mode = mode
|
||||
|
||||
@ -88,37 +94,15 @@ class InlineBot:
|
||||
def __makeCommands(self):
|
||||
cmd = Command()
|
||||
|
||||
cmd.setName("Pony")
|
||||
cmd.setDesc("yay, ponies!")
|
||||
cmd.setMode("imageurl")
|
||||
cmd.setHeaderField("imageurl")
|
||||
self.commands.append(cmd)
|
||||
# def __init__(self, name, desc, mode, hf):
|
||||
|
||||
cmd.setName("Clop")
|
||||
cmd.setDesc("NSFW ponies")
|
||||
self.commands.append(cmd)
|
||||
|
||||
cmd.setName("Furry")
|
||||
cmd.setDesc("Furries")
|
||||
self.commands.append(cmd)
|
||||
|
||||
cmd.setName("Loli")
|
||||
cmd.setDesc("Cute lolis")
|
||||
self.commands.append(cmd)
|
||||
|
||||
cmd.setName("Yiff")
|
||||
cmd.setDesc("Yiff")
|
||||
self.commands.append(cmd)
|
||||
|
||||
cmd.setName("Lewd")
|
||||
cmd.setDesc("Say hi to the police")
|
||||
self.commands.append(cmd)
|
||||
|
||||
cmd.setName("Rasoio")
|
||||
cmd.setDesc("Dai facciamogli lo scherzo del rasoio!1!!")
|
||||
cmd.setMode("genericurl")
|
||||
cmd.setHeaderField("htmldescription")
|
||||
self.commands.append(cmd)
|
||||
self.commands.append(Command("Pony", "yay, ponies!", "imageurl", "imageurl"))
|
||||
self.commands.append(Command("Clop", "NSFW ponies", "imageurl", "imageurl"))
|
||||
self.commands.append(Command("Furry", "Furries", "imageurl", "imageurl"))
|
||||
self.commands.append(Command("Loli", "Cute lolis", "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("Rasoio", "Dai facciamogli lo scherzo del rasoio!1!!", "genericurl", "htmldescription"))
|
||||
|
||||
def callRequest(self, command, senderid, text = ""):
|
||||
if not command:
|
||||
|
Loading…
Reference in New Issue
Block a user