diff --git a/inline.py b/inline.py index f0ad27e..ecfe61a 100644 --- a/inline.py +++ b/inline.py @@ -42,10 +42,7 @@ class Command: def setName(self, name): self.name = name - - def getCommand(self): - return self.command - + def setHeaderField(self, param): self.headerField = param @@ -153,7 +150,7 @@ class InlineBot: if not command: return self.errorText - r = requests.post(self.config.getApiUrl(), headers = { "Content-Type" : "application/json", "User-Agent" : self.config.getUserAgent() }, data = json.JSONEncoder().encode(JSONRequest(self.config, command.getCommand(), senderid, text).__dict__)) + r = requests.post(self.config.getApiUrl(), headers = { "Content-Type" : "application/json", "User-Agent" : self.config.getUserAgent() }, data = json.JSONEncoder().encode(JSONRequest(self.config, command.getName(), senderid, text).__dict__)) #if not r: return self.errorText