add setting methods for url module, fixes #31
This commit is contained in:
parent
760100bf51
commit
b2641068ed
|
@ -143,5 +143,12 @@ class MatrixModule:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def get_settings(self):
|
||||||
|
return {"status": self.status}
|
||||||
|
|
||||||
|
def set_settings(self, data):
|
||||||
|
if data.get("status"):
|
||||||
|
self.status = data["status"]
|
||||||
|
|
||||||
def help(self):
|
def help(self):
|
||||||
return "If I see a url in a message I will try to get the title from the page and spit it out"
|
return "If I see a url in a message I will try to get the title from the page and spit it out"
|
||||||
|
|
Loading…
Reference in New Issue