diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 98ec340..ea4b958 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -147,6 +147,9 @@ class Logbot(Bot): self.db[message.room]["messages"][new_key] = media_post else: post = message.content.replace("@add ", "") + for url in re.findall(r"http\S+", post): + url_with_href = f"{url}" + post.replace(url, url_with_href) self.db[message.room]["messages"][new_key] = post self.db._dumps()