special.lua 2 neue (sinnlose) Befehle

This commit is contained in:
Akamaru 2016-09-05 16:20:22 +02:00
parent 8f161217ad
commit 4e7517fdf0
2 changed files with 11 additions and 4 deletions

3
.gitignore vendored
View File

@ -5,4 +5,5 @@ tmp/*
miku/plugins/licht.lua
Bot-Kommandoliste.txt
msg.txt
merge.sh
merge.sh
miku/plugins/link_warning.lua

View File

@ -29,7 +29,9 @@ special.triggers = {
"^[Mm][Uu]$",
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$",
"^/%)$",
"^%(\\$"
"^%(\\$",
"^/[Ss][Cc][Hh][Ee][Ll][Ll][Ee]$",
"^[Pp][Ii][Nn][Gg]$"
}
@ -41,8 +43,8 @@ function special:action(msg, config, matches)
if msg_text:match("[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]") then
output = 'Akamaru ist nicht reich!'
elseif string.match(msg.text, "[Mm][Ii][Kk][Uu]%??") then
local alive_answers = {'Ja?','Was gibts, '..user_name..'?','Ja '..user_name..', was ist?', 'Ich bin noch da.', user_name, 'Nein!','So heiße ich', 'Nerv mich nicht!'}
local random_alive = math.random(8)
local alive_answers = {'Ja?','Was gibts, '..user_name..'?','Ja '..user_name..', was ist?', 'Ich bin noch da.', user_name, 'Nein!','So heiße ich', 'Nerv mich nicht!','Was.'}
local random_alive = math.random(9)
output = alive_answers[random_alive]
elseif msg_text:match("/[Oo][Ll][Dd]") then
output = 'Deine Mudda is old!'
@ -113,6 +115,10 @@ function special:action(msg, config, matches)
output = '(\\'
elseif msg_text:match("%(\\") then
output = '/)'
elseif msg_text:match("^/[Ss][Cc][Hh][Ee][Ll][Ll][Ee]$") then
output = 'So dumme Befehle wie die "HiddenDatabase" benutzen wir nicht!'
elseif msg_text:match("^[Pp][Ii][Nn][Gg]$") then
output = 'Pong'
end
utilities.send_reply(msg, output)