Browse Source

another change to test the git hooks

master
ccl 11 months ago
parent
commit
794f443fb1
  1. 3
      LogBot/logbot.py
  2. 2
      LogBot/template.html

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

2
LogBot/template.html

@ -6,6 +6,7 @@
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>{{ title }}</h1>
(Follow this log: <a href="./feed.rss.xml">RSS</a>)
@ -35,4 +36,5 @@
</div>
<footer></footer>
</body>
</html>

Loading…
Cancel
Save