diff --git a/.gitignore b/.gitignore index 51ebeac..87ea3b6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ tmp/* miku/plugins/licht.lua Bot-Kommandoliste.txt msg.txt -merge.sh \ No newline at end of file +merge.sh +miku/plugins/link_warning.lua \ No newline at end of file diff --git a/miku/plugins/special.lua b/miku/plugins/special.lua index dc99134..2ac03da 100644 --- a/miku/plugins/special.lua +++ b/miku/plugins/special.lua @@ -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)