forked from varia/bots
another change to test the git hooks
This commit is contained in:
parent
4a682cfdc4
commit
794f443fb1
@ -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 ", ""))
|
||||
|
@ -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…
Reference in New Issue
Block a user