MyAnimeList: Entferne URL-Pattern
This commit is contained in:
parent
0f2e1460cb
commit
b5ef889765
@ -21,9 +21,7 @@ function mal:init(config)
|
|||||||
|
|
||||||
mal.triggers = {
|
mal.triggers = {
|
||||||
"^/(anime) (.+)$",
|
"^/(anime) (.+)$",
|
||||||
"myanimelist.net/(anime)/[0-9]+/(.*)$",
|
"^/(manga) (.+)$"
|
||||||
"^/(manga) (.+)$",
|
|
||||||
"myanimelist.net/(manga)/[0-9]+/(.*)$"
|
|
||||||
}
|
}
|
||||||
mal.doc = [[*
|
mal.doc = [[*
|
||||||
]]..config.cmd_pat..[[anime*_ <Anime>_: Sendet Infos zum Anime
|
]]..config.cmd_pat..[[anime*_ <Anime>_: Sendet Infos zum Anime
|
||||||
@ -192,7 +190,7 @@ function mal:send_manga_data(result)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function mal:action(msg, config)
|
function mal:action(msg, config, matches)
|
||||||
local query = URL.escape(matches[2])
|
local query = URL.escape(matches[2])
|
||||||
if matches[1] == 'anime' then
|
if matches[1] == 'anime' then
|
||||||
local anime_info = mal:get_mal_info(query, 'anime')
|
local anime_info = mal:get_mal_info(query, 'anime')
|
||||||
|
Reference in New Issue
Block a user