fuck this fucking afk shit plugin fuck

This commit is contained in:
Akamaru 2015-07-27 18:35:20 +02:00
parent 76699da739
commit 124db26473
1 changed files with 7 additions and 13 deletions

View File

@ -1,29 +1,23 @@
function run(msg, matches)
--local text = matches[2]
local text = matches[2]
local user_name = get_name(msg)
--[[if matches[1] == '/afk' and matches[2] then
return user_name .. ' ist nun AFK (' .. text .. ')'
if string.starts(msg.text, '/afk') and (text == nil) then
return user_name .. ' ist nun AFK'
else
return user_name .. ' ist nun AFK'
end]]
if string.starts(msg.text, '/afk') then
return user_name .. ' ist nun AFK'
--elseif string.starts(msg.text, '/afk') and text == not nil then
--return user_name .. ' ist nun AFK (' .. text .. ')'
return user_name .. ' ist nun AFK (' .. text .. ')'
end
if string.starts(msg.text, '/re') or string.starts(msg.text, '/wd') then
--[[if string.starts(msg.text, '/re') or string.starts(msg.text, '/wd') then
return user_name .. ' ist wieder da!'
end
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]$'},
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]