Added pingself

This commit is contained in:
Yessiest 2022-05-08 21:15:27 +04:00
parent 72abab6e95
commit 9d0829d652
1 changed files with 14 additions and 0 deletions

View File

@ -333,6 +333,20 @@ local c_echo = command("echo",{
}) })
plugin:add_command(c_echo) plugin:add_command(c_echo)
local c_pingself = command("pingself",{
args = {
"string"
},
exec = function(msg,args,opts)
local text = purify_strings(msg, table.concat(args," "))
if opts["unescape"] or opts["u"] then
text = text:gsub("\\","")
end
msg:reply("<@"..tostring(msg.member.id).."> "..text)
end,
})
plugin:add_command(c_pingself)
plugin.removal_callback = function() plugin.removal_callback = function()
for k,v in pairs(config.aliases) do for k,v in pairs(config.aliases) do
remove_alias(k) remove_alias(k)