Skip to content

Commit

Permalink
Merge pull request Bambooir#51 from ThisIsArman/patch-2
Browse files Browse the repository at this point in the history
Create Feedback.lua
  • Loading branch information
Imandaneshi committed Jan 3, 2016
2 parents 1e5a02d + 6e267c1 commit 9b8a40a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions plugins/Feedback.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
do

function run(msg, matches)

local fuse = 'New FeedBack\n\nId : ' .. msg.from.id .. '\n\nName: ' .. msg.from.print_name ..'\n\nUsername: @' .. msg.from.username .. '\n\nThe Pm:\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id


local text = matches[1]
local chat = "chat#id"..YourChatId
--like : local chat = "chat#id"..12345678

local sends = send_msg(chat, fuse, ok_cb, false)
return 'Sent!'

end
end
return {

description = "Feedback",

usage = "!feedback message",
patterns = {
"^[!/][Ff]eedback (.*)$"

},
run = run
}

0 comments on commit 9b8a40a

Please sign in to comment.