misc.shodan: handle detail response

This commit is contained in:
Cynthia Foxwell 2022-04-20 13:51:36 -06:00
parent f99780c297
commit b3342d9d36

View file

@ -340,6 +340,8 @@ shodan.callback = async function (msg, line) {
res.json()
);
if (data.detail) return data.detail;
return {
embed: {
title: `Results for \`${data.ip}\``,