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