-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.lua
More file actions
35 lines (28 loc) · 783 Bytes
/
script.lua
File metadata and controls
35 lines (28 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function ok_cb(extra, success, result)
end
function on_msg_receive (msg)
findname = string.find (msg.from.print_name, "")
if (msg.text ~= nil) then
findtext = string.find (msg.text, "")
end
if ((findname or findtext) ~= nil) then
if (msg.to.peer_type == 'chat' or msg.to.peer_type == 'channel') then
chatname = msg.to.print_name
else
chatname = msg.from.print_name
end
send_msg(chatname, "@" .. msg.from.username ..", Respect interlocutors! Don't use special symbol!", ok_cb, false)
end
end
function on_our_id (id)
end
function on_secret_chat_created (peer)
end
function on_user_update (user)
end
function on_chat_update (user)
end
function on_get_difference_end ()
end
function on_binlog_replay_end ()
end