Merge pull request #32 from tswfi/url_get_settings

add setting methods for url module, fixes #31
This commit is contained in:
Ville Ranki 2020-01-29 20:07:47 +02:00 committed by GitHub
commit 80f125683f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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"