add setting methods for url module, fixes #31

This commit is contained in:
Tatu Wikman 2020-01-29 12:34:22 +02:00
parent 760100bf51
commit b2641068ed
No known key found for this signature in database
GPG Key ID: BF214F789950B74E
1 changed files with 7 additions and 0 deletions

View File

@ -143,5 +143,12 @@ class MatrixModule:
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):
return "If I see a url in a message I will try to get the title from the page and spit it out"