diff --git a/otouto/plugins/notify.lua b/otouto/plugins/notify.lua
index ac580e2..2a9643b 100644
--- a/otouto/plugins/notify.lua
+++ b/otouto/plugins/notify.lua
@@ -39,12 +39,13 @@ function notify:pre_process(msg)
if redis:sismember('chat:'..chat_id..':users', id) then
-- ignore message, if user is mentioning him/herself
if id ~= tostring(msg.from.id) then
- local send_date = run_command('date -d @'..msg.date..' +"%d.%m.%Y um %H:%M:%S Uhr"')
+ local send_date = run_command('date -d @'..msg.date..' +"%d.%m.%Y | π %H:%M:%S Uhr"')
local send_date = string.gsub(send_date, "\n", "")
local from = string.gsub(msg.from.name, "%_", " ")
local chat_name = string.gsub(msg.chat.title, "%_", " ")
- local text = from..' am '..send_date..' in "'..chat_name..'":\n\n'..msg.text
- utilities.send_message(id, text, true)
+ local text = 'π '..utilities.html_escape(from)..' hat dich erwΓ€hnt:'
+ local text = text..'\nπ₯ '..utilities.html_escape(chat_name)..' | π
'..send_date..'\n\n'..utilities.html_escape(msg.text)
+ utilities.send_message(id, text, true, false, 'HTML')
end
end
end
diff --git a/otouto/plugins/youtube.lua b/otouto/plugins/youtube.lua
index aaa4aee..09570f4 100644
--- a/otouto/plugins/youtube.lua
+++ b/otouto/plugins/youtube.lua
@@ -98,15 +98,15 @@ function send_youtube_data(data, msg, self, link, sendpic)
local upload_date = makeOurDate(data.snippet.publishedAt)
local viewCount = comma_value(data.statistics.viewCount)
if data.statistics.likeCount then
- likeCount = ' | π '..comma_value(data.statistics.likeCount)..' | π '
- dislikeCount = comma_value(data.statistics.dislikeCount)
+ likeCount = ' | π '..comma_value(data.statistics.likeCount)..' |'
+ dislikeCount = ' π '..comma_value(data.statistics.dislikeCount)..''
else
likeCount = ''
dislikeCount = ''
end
if data.statistics.commentCount then
- commentCount = ' | π£ '..comma_value(data.statistics.commentCount)
+ commentCount = ' | π£ '..comma_value(data.statistics.commentCount)..''
else
commentCount = ''
end
@@ -120,7 +120,7 @@ function send_youtube_data(data, msg, self, link, sendpic)
blocked = false
end
- text = ''..title..'\nπ₯ '..uploader..', π
'..upload_date..'\nπ '..viewCount..' | π '..duration..likeCount..dislikeCount..commentCount..'\n'
+ text = ''..title..'\nπ₯ '..uploader..', π
'..upload_date..'\nπ '..viewCount..' | π '..duration..''..likeCount..dislikeCount..commentCount..'\n'
if link then
text = link..'\n'..text
end