adding descriptions to all the functions
This commit is contained in:
parent
57c2dbc881
commit
ccd695c462
@ -53,6 +53,7 @@ class Logbot(Bot):
|
||||
)
|
||||
|
||||
def _download(self, message):
|
||||
"""Download media files."""
|
||||
# define media_type
|
||||
if message.url.lower().endswith(self.IMAGE_TYPES):
|
||||
media_type = "images"
|
||||
@ -153,6 +154,7 @@ class Logbot(Bot):
|
||||
self.log.info(f"Copied stylesheet.css to: { room }")
|
||||
|
||||
def setup(self):
|
||||
"""Setup a log for all the rooms LogBot is subscribed to."""
|
||||
self.log.info(f"Output folder is set to: { self.output }")
|
||||
for room in self.rooms:
|
||||
self._setup_room(room)
|
||||
@ -165,8 +167,7 @@ class Logbot(Bot):
|
||||
self._setup_room(str(message["from"]))
|
||||
|
||||
def group(self, message):
|
||||
|
||||
# to debug in the terminal
|
||||
"""All the things LogBot does when it receives a group message."""
|
||||
self.log.info("------------------")
|
||||
self.log.info(f"message: {message.text}")
|
||||
self.log.info(f"room: {message.room}")
|
||||
|
Loading…
Reference in New Issue
Block a user