|
@ -118,6 +118,7 @@ class Logbot(Bot): |
|
|
with open(log_path, "w") as out: |
|
|
with open(log_path, "w") as out: |
|
|
html = template.render( |
|
|
html = template.render( |
|
|
title=self.db[message.room]["title"], |
|
|
title=self.db[message.room]["title"], |
|
|
|
|
|
# description = self.db[message.room]["description"], |
|
|
db=self.db[message.room]["messages"], |
|
|
db=self.db[message.room]["messages"], |
|
|
sorted_numbering=[str(num) for num in sorted([int(num) for num in self.db[message.room]["messages"].keys()])] |
|
|
sorted_numbering=[str(num) for num in sorted([int(num) for num in self.db[message.room]["messages"].keys()])] |
|
|
) |
|
|
) |
|
@ -291,6 +292,12 @@ class Logbot(Bot): |
|
|
self.db[message.room]["title"] = title |
|
|
self.db[message.room]["title"] = title |
|
|
reply = f"The title of the log is changed to: { title }" |
|
|
reply = f"The title of the log is changed to: { title }" |
|
|
|
|
|
|
|
|
|
|
|
# # Trying to make a function for the room to have a description |
|
|
|
|
|
# elif "@description" in message.text: |
|
|
|
|
|
# match = re.findall("@description .*", message.content)[0] |
|
|
|
|
|
# description = re.findall(r'"(.*?)"', message.text) |
|
|
|
|
|
# reply = description |
|
|
|
|
|
|
|
|
# Response to @folder |
|
|
# Response to @folder |
|
|
# https://git.vvvvvvaria.org/varia/bots/issues/5 |
|
|
# https://git.vvvvvvaria.org/varia/bots/issues/5 |
|
|
elif "@folder" in message.text: |
|
|
elif "@folder" in message.text: |
|
|