Brohoof /)

This commit is contained in:
Akamaru 2016-08-29 21:01:07 +02:00
parent 1b0097aa9f
commit 47b2f6b8f7
2 changed files with 9 additions and 2 deletions

View File

@ -64,7 +64,7 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec
-- Cache user info for those involved.
-- print messages
msg_time = '\27[36m'..convert_timestamp(msg.date, '[%H:%M:%S] ')..'\27[0m'
msg_time = '\27[36m'..convert_timestamp(msg.date, '[%H:%M:%S]')..'\27[0m'
if msg.chat.title then
from_chat = ' \27[36m'..msg.chat.title..':\27[0m '

View File

@ -27,7 +27,10 @@ special.triggers = {
"^[Pp][Ee]$",
"^[Vv][Aa]$",
"^[Mm][Uu]$",
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$"
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$",
"^/%)$",
"^%(\\$"
}
function special:action(msg, config, matches)
@ -106,6 +109,10 @@ function special:action(msg, config, matches)
output = 'schi'
elseif msg_text:match("/[Ii][Yy][Kk][Ww][Ii][Mm]") then
output = '(¬‿¬)'
elseif msg_text:match("/%)") then
output = '(\\'
elseif msg_text:match("%(\\") then
output = '/)'
end
utilities.send_reply(msg, output)