SomeNet
/
public repos
/
pub
/
jan
/
mattermost-bot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
be80439
)
core/AbstractCommand.py
author
Someone
<someone@somenet.org>
Sat, 3 Sep 2022 16:48:40 +0000
(18:48 +0200)
committer
Someone
<someone@somenet.org>
Sat, 3 Sep 2022 16:48:40 +0000
(18:48 +0200)
core/AbstractCommand.py
patch
|
blob
|
history
diff --git
a/core/AbstractCommand.py
b/core/AbstractCommand.py
index 9fd0afd199fd61dac753ac6d1ad09478a219e66e..c77d594c5cbb4c89c1cdbf6e88ae0bd1579381c4 100644
(file)
--- a/
core/AbstractCommand.py
+++ b/
core/AbstractCommand.py
@@
-69,7
+69,7
@@
class AbstractCommand():
def _on_register(self, bot):
self.bot = bot
- self.URL =
self.bot.local_websrv_url
+"/"+self.TEAM_ID+"/"+self.TRIGGER
+ self.URL =
("http://"+self.bot.local_websrv_hostname+":"+str(self.bot.local_websrv_port)+"/").strip("/")
+"/"+self.TEAM_ID+"/"+self.TRIGGER
if self.USEINFO:
self.bot.USETOPICS.setdefault("/"+self.TRIGGER, self.USEINFO)
self.on_register()