forked from Bambooir/TeleSeed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Bambooir#51 from ThisIsArman/patch-2
Create Feedback.lua
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |