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

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ miku/plugins/licht.lua
Bot-Kommandoliste.txt Bot-Kommandoliste.txt
msg.txt msg.txt
merge.sh merge.sh
miku/plugins/link_warning.lua

View File

@ -29,7 +29,9 @@ special.triggers = {
"^[Mm][Uu]$", "^[Mm][Uu]$",
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$", "^/[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 if msg_text:match("[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]") then
output = 'Akamaru ist nicht reich!' output = 'Akamaru ist nicht reich!'
elseif string.match(msg.text, "[Mm][Ii][Kk][Uu]%??") then 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 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(8) local random_alive = math.random(9)
output = alive_answers[random_alive] output = alive_answers[random_alive]
elseif msg_text:match("/[Oo][Ll][Dd]") then elseif msg_text:match("/[Oo][Ll][Dd]") then
output = 'Deine Mudda is old!' output = 'Deine Mudda is old!'
@ -113,6 +115,10 @@ function special:action(msg, config, matches)
output = '(\\' output = '(\\'
elseif msg_text:match("%(\\") then elseif msg_text:match("%(\\") then
output = '/)' 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 end
utilities.send_reply(msg, output) utilities.send_reply(msg, output)