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
|
# get the size of the file
|
||||||
media_size = os.path.getsize(os.path.join(self.output, folder_name, media_path))
|
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":
|
if media_type == "image":
|
||||||
try:
|
try:
|
||||||
size = (450, 450)
|
size = (450, 450)
|
||||||
@ -268,7 +269,7 @@ class Logbot(Bot):
|
|||||||
else:
|
else:
|
||||||
reply = "This one is already gone!"
|
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:
|
elif "@caption" in message.text:
|
||||||
match = re.findall(r"@caption \d*", message.content)[0]
|
match = re.findall(r"@caption \d*", message.content)[0]
|
||||||
key = str(match.replace("@caption ", ""))
|
key = str(match.replace("@caption ", ""))
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="stylesheet.css">
|
<link rel="stylesheet" type="text/css" href="stylesheet.css">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
(Follow this log: <a href="./feed.rss.xml">RSS</a>)
|
(Follow this log: <a href="./feed.rss.xml">RSS</a>)
|
||||||
@ -35,4 +36,5 @@
|
|||||||
</div>
|
</div>
|
||||||
<footer></footer>
|
<footer></footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user