diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 38ec72e..a7024c6 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -75,6 +75,7 @@ class Logbot(Bot): # get the size of the file media_size = os.path.getsize(os.path.join(self.output, folder_name, media_path)) + # if the file is an image, create a thumbnail if media_type == "image": try: size = (450, 450) @@ -268,7 +269,7 @@ class Logbot(Bot): else: reply = "This one is already gone!" - # Response to @caption + # Add a caption and write a response to the prompt @caption elif "@caption" in message.text: match = re.findall(r"@caption \d*", message.content)[0] key = str(match.replace("@caption ", "")) diff --git a/LogBot/template.html b/LogBot/template.html index 74d983b..2b2711e 100644 --- a/LogBot/template.html +++ b/LogBot/template.html @@ -6,6 +6,7 @@ +