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