Nur ein paar Änderungen ._. ^^
This commit is contained in:
parent
b9f4773fa8
commit
f4bb73b9b3
@ -5,7 +5,7 @@ function kickstarter_search:init(config)
|
|||||||
"/[Kk][Ii][Cc][Kk][Ss] (.+)$"
|
"/[Kk][Ii][Cc][Kk][Ss] (.+)$"
|
||||||
}
|
}
|
||||||
kickstarter_search.doc = [[*
|
kickstarter_search.doc = [[*
|
||||||
]]..config.cmd_pat..[[kicks* _<Suchbegriff>_: Sucht Projekt auf Kickstarter]]
|
]]..config.cmd_pat..[[kicks* _<Suchbegriff>_: Sucht ein Projekt auf Kickstarter]]
|
||||||
kickstarter_search.command = 'kicks <Suchbegriff>'
|
kickstarter_search.command = 'kicks <Suchbegriff>'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ function respond:init(config)
|
|||||||
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Ss])",
|
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Ss])",
|
||||||
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Rr])",
|
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee][Rr])",
|
||||||
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee])",
|
"([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee])",
|
||||||
"^[Bb][Oo][Tt]%??$",
|
|
||||||
"^/([Ll][Oo][Dd])$",
|
"^/([Ll][Oo][Dd])$",
|
||||||
"^/([Ll][Ff])$",
|
"^/([Ll][Ff])$",
|
||||||
"^/([Kk][Aa])$",
|
"^/([Kk][Aa])$",
|
||||||
@ -62,9 +61,6 @@ function respond:action(msg, config, matches)
|
|||||||
elseif string.match(msg.text, "([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee])") then
|
elseif string.match(msg.text, "([Ee][Ii][Nn][Zz][Ii][Gg][Ss][Tt][Ee])") then
|
||||||
utilities.send_message(receiver, '*einzige')
|
utilities.send_message(receiver, '*einzige')
|
||||||
return
|
return
|
||||||
elseif string.match(msg.text, "[Bb][Oo][Tt]%??") then
|
|
||||||
utilities.send_reply(msg, '*Ich bin da, '..user_name..'!*', true)
|
|
||||||
return
|
|
||||||
elseif string.match(msg.text, "[Ll][Oo][Dd]") then
|
elseif string.match(msg.text, "[Ll][Oo][Dd]") then
|
||||||
utilities.send_message(receiver, 'ಠ_ಠ')
|
utilities.send_message(receiver, 'ಠ_ಠ')
|
||||||
return
|
return
|
||||||
|
@ -2,6 +2,7 @@ local special = {}
|
|||||||
|
|
||||||
special.triggers = {
|
special.triggers = {
|
||||||
"[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]",
|
"[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]",
|
||||||
|
"^[Mm][Ii][Kk][Uu]%??$",
|
||||||
"^/[Oo][Ll][Dd]$",
|
"^/[Oo][Ll][Dd]$",
|
||||||
"^[Nn][Yy][Uu]$",
|
"^[Nn][Yy][Uu]$",
|
||||||
"^[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]$",
|
"^[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]$",
|
||||||
@ -32,11 +33,16 @@ special.triggers = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function special:action(msg, config, matches)
|
function special:action(msg, config, matches)
|
||||||
|
local user_name = get_name(msg)
|
||||||
local msg_text = msg.text
|
local msg_text = msg.text
|
||||||
local output
|
local output
|
||||||
|
|
||||||
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
|
||||||
|
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)
|
||||||
|
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!'
|
||||||
elseif msg_text:match("[Nn][Yy][Uu]") then
|
elseif msg_text:match("[Nn][Yy][Uu]") then
|
||||||
@ -81,7 +87,7 @@ function special:action(msg, config, matches)
|
|||||||
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/0SEY/barusamikosu.jpg'), nil, msg.message_id)
|
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/0SEY/barusamikosu.jpg'), nil, msg.message_id)
|
||||||
return
|
return
|
||||||
elseif msg_text:match("[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]") then
|
elseif msg_text:match("[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]") then
|
||||||
output = 'Gomen\'nasai '..msg.from.first_name..'-sempai 😣'
|
output = 'Gomen\'nasai '..msg.from.first_name..'-senpai 😣'
|
||||||
elseif msg_text:match("[Aa][Hh][Aa].[Pp][Nn][Gg]") then
|
elseif msg_text:match("[Aa][Hh][Aa].[Pp][Nn][Gg]") then
|
||||||
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/W97R/aha.png'), nil, msg.message_id)
|
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/W97R/aha.png'), nil, msg.message_id)
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user