Advertisement
psycholyzern

msg.lua

Jul 3rd, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local function message(id, text)
  2.   send_msg(id, text, ok_cb, false)
  3. end
  4.  
  5.  
  6. local function run(msg, matches)
  7.   message(matches[1], matches[2])
  8. print(matches[1])
  9. print(matches[2])
  10. end
  11.  
  12. return {
  13.   description = "",
  14.   usage = "",
  15.   patterns = {
  16.     "^!msg (user#id%d%d%d%d%d%d%d%d)%s(.*)$",
  17.     "^!msg (chat#id%d%d%d%d%d%d%d%d)%s(.*)$"
  18.   },
  19.   run = run
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement