23 lines
651 B
Lua
23 lines
651 B
Lua
function run(msg, matches)
|
|
local text = matches[2]
|
|
local user_name = get_name(msg)
|
|
|
|
if string.starts(msg.text, '/afk') and (text == nil) then
|
|
return user_name .. ' ist nun AFK'
|
|
else
|
|
return user_name .. ' ist nun AFK (' .. text .. ')'
|
|
end
|
|
|
|
--[[if string.starts(msg.text, '/re') or string.starts(msg.text, '/wd') then
|
|
return user_name .. ' ist wieder da!'
|
|
end]]
|
|
|
|
end
|
|
|
|
return {
|
|
description = 'Sagt dass ihr afk oder wieder da seid',
|
|
usage = {'/afk','/re','/wd'},
|
|
patterns = {'^/([A|a][F|f][K|k])$','^/([A|a][F|f][K|k]) (.*)$','^/([R|r][E|e])$','^/([W|w][D|d])$'},
|
|
run = run
|
|
}
|
|
--by Akamaru [https://ponywave.de] |