.revimg to reverse image search any link

This commit is contained in:
Master Kwoth
2016-04-27 22:42:28 +02:00
parent b389d4429f
commit 99c5c2e92f
2 changed files with 13 additions and 1 deletions

View File

@ -409,6 +409,18 @@ $@"🌍 **Weather for** 【{obj["target"]}】
return;
await e.Channel.SendMessage($"https://images.google.com/searchbyimage?image_url={usr.AvatarUrl}").ConfigureAwait(false);
});
cgb.CreateCommand(Prefix + "revimg")
.Description("Returns a google reverse image search for an image from a link.")
.Parameter("image", ParameterType.Unparsed)
.Do(async e =>
{
var imgLink = e.GetArg("image")?.Trim();
if (string.IsNullOrWhiteSpace(imgLink))
return;
await e.Channel.SendMessage($"https://images.google.com/searchbyimage?image_url={imgLink}").ConfigureAwait(false);
});
});
}
}