Brohoof /)
This commit is contained in:
parent
1b0097aa9f
commit
47b2f6b8f7
@ -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.
|
-- Cache user info for those involved.
|
||||||
|
|
||||||
-- print messages
|
-- 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
|
if msg.chat.title then
|
||||||
from_chat = ' \27[36m'..msg.chat.title..':\27[0m '
|
from_chat = ' \27[36m'..msg.chat.title..':\27[0m '
|
||||||
|
@ -27,7 +27,10 @@ special.triggers = {
|
|||||||
"^[Pp][Ee]$",
|
"^[Pp][Ee]$",
|
||||||
"^[Vv][Aa]$",
|
"^[Vv][Aa]$",
|
||||||
"^[Mm][Uu]$",
|
"^[Mm][Uu]$",
|
||||||
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$"
|
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$",
|
||||||
|
"^/%)$",
|
||||||
|
"^%(\\$"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function special:action(msg, config, matches)
|
function special:action(msg, config, matches)
|
||||||
@ -106,6 +109,10 @@ function special:action(msg, config, matches)
|
|||||||
output = 'schi'
|
output = 'schi'
|
||||||
elseif msg_text:match("/[Ii][Yy][Kk][Ww][Ii][Mm]") then
|
elseif msg_text:match("/[Ii][Yy][Kk][Ww][Ii][Mm]") then
|
||||||
output = '(¬‿¬)'
|
output = '(¬‿¬)'
|
||||||
|
elseif msg_text:match("/%)") then
|
||||||
|
output = '(\\'
|
||||||
|
elseif msg_text:match("%(\\") then
|
||||||
|
output = '/)'
|
||||||
end
|
end
|
||||||
|
|
||||||
utilities.send_reply(msg, output)
|
utilities.send_reply(msg, output)
|
||||||
|
Reference in New Issue
Block a user