rev
Privateunrated
Content
63 lines{delete}
{override}
{=(prefix):!}
{=(tagname):rev}
{=(hyperlink.text):CLICK TO VIEW RESULTS}
{=(COMMENT):Valid image extensions for direct links. Avoid changing those or adding or removing some.}
{=(extensions):.jpg .jpeg .gif .png .webp}
{=(COMMENT):"Error" message to be displayed when either no argument or an invalid direct image link have been provided by the user.}
{=(error.message):Yeah, ummmm..... Sorry {user(name)} but you're gonna need to specify either a direct image link or a user mention.
It will generate a Google Reverse Image Search Link, from your **image URL**, or a mentioned user's avatar. The mentioned user needs to be in the server you use the command in for the bot to detect them.
Note: Direct image links usually end with (or contain) an image extension such as:
`{join(`, `):{extensions}`}}
{=(COMMENT):Automatically deletes the command's invocation (message), to keep the channel cleaner, especially with image links.}
{delete}
{=(COMMENT):URL Prefix for the Google Image Search.}
{=(url.prefix):https://images.google.com/searchbyimage?image_url=}
{=(COMMENT):Joins the arguments with a comma.}
{=(jargs):{join(,):{args}}}
{=(COMMENT):Checks if a target has been mentioned by the user of the tag.}
{=(isTarget):{if({target(id)}!={user(id)}):true|false}}
{=(COMMENT):Stores the first argument in a variable for later. Returns nothing if no argument has been specified, thanks to the "list" block.}
{=(li1):{list(0):{jargs}}}
{=(COMMENT):Tricky yet "ok" way to check for image extensions in the user's image link.
There are other ways of doing it but I wanted to try something different/new this time.}
{=(ext):{li1(1):{extensions(1)}}{extensions(1)} {li1(1):{extensions(2)}}{extensions(2)} {li1(1):{extensions(3)}}{extensions(3)} {li1(1):{extensions(4)}}{extensions(4)} {li1(1):{extensions(5)}}{extensions(5)}}
{=(COMMENT):Checks if the provided URL is a direct image link.}
{=(isDirect):{contains({li1}):{ext}}}
{=(COMMENT):Returns the proper image depending on the user argument. Returns nothing if it doesn't meet any requirement.}
{=(img_from_args):{if({user(mention)}=={li1}):{user(avatar)}|{if({isTarget}==true):{target(avatar)}|{and(!={li1}|{isDirect}==true):{li1}}}}}
{=(COMMENT):Returns true if the variable above is not empty; meaning the user specified something valid, so an image link will be displayed in the embed.}
{=(isImage):{if(!={img_from_args}):true|false}}
{=(COMMENT):Full link to the image URL for the embed.}
{=(img_url):{if({isImage}==true):{url.prefix}{img_from_args}}}
{=(COMMENT):Output Management.}
{=(COMMENT):Hyperlink to display to the user after querying.}
{=(hyperlink):**[{hyperlink.text}]({img_url} "Google Images - Reverse Search")**}
{=(COMMENT):Extra line below the hyperlink that shows whose avatar it's querying (granted a user was mentioned), or simply describes that the image below will be the provided image.}
{=(extra):{any({user(mention)}=={li1}|{isTarget}==true):__**{user(name)}'s Reverse Image Search**__:}}
{=(COMMENT):Returns the actual conditional output in the embed's description field.}
{=(output):{if({isImage}==true):{hyperlink}
{extra}|{error.message}}}
{=(embed.color):#0fffff}
{embed(color):#{replace(#,):{embed.color}}}
{=(embed.footer):{prefix}{tagname} [image link | @user]}Embed
1 line{"color": 5198940, "image": {"url": "{img_from_args}"}, "footer": {"text": "{server(name)} • {embed.footer} ", "icon_url": "{server(icon)}"}, "description": "{output}"}Raw JSON
{
"id": 669870,
"created_at": "2021-03-12T06:02:06.000Z",
"tag_name": "rev",
"nsfw": false,
"owner_id": "755426354408980580",
"uses": 36,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "806913349111644182",
"sharer": "650362174501552134",
"content": "{delete}\n{override}\n{=(prefix):!}\n{=(tagname):rev}\n{=(hyperlink.text):CLICK TO VIEW RESULTS}\n\n{=(COMMENT):Valid image extensions for direct links. Avoid changing those or adding or removing some.}\n{=(extensions):.jpg .jpeg .gif .png .webp}\n\n{=(COMMENT):\"Error\" message to be displayed when either no argument or an invalid direct image link have been provided by the user.}\n{=(error.message):Yeah, ummmm..... Sorry {user(name)} but you're gonna need to specify either a direct image link or a user mention.\n\nIt will generate a Google Reverse Image Search Link, from your **image URL**, or a mentioned user's avatar. The mentioned user needs to be in the server you use the command in for the bot to detect them.\n\nNote: Direct image links usually end with (or contain) an image extension such as:\n`{join(`, `):{extensions}`}}\n\n{=(COMMENT):Automatically deletes the command's invocation (message), to keep the channel cleaner, especially with image links.}\n{delete}\n\n{=(COMMENT):URL Prefix for the Google Image Search.}\n{=(url.prefix):https://images.google.com/searchbyimage?image_url=}\n\n{=(COMMENT):Joins the arguments with a comma.}\n{=(jargs):{join(,):{args}}}\n\n{=(COMMENT):Checks if a target has been mentioned by the user of the tag.}\n{=(isTarget):{if({target(id)}!={user(id)}):true|false}}\n\n{=(COMMENT):Stores the first argument in a variable for later. Returns nothing if no argument has been specified, thanks to the \"list\" block.}\n{=(li1):{list(0):{jargs}}}\n\n{=(COMMENT):Tricky yet \"ok\" way to check for image extensions in the user's image link.\nThere are other ways of doing it but I wanted to try something different/new this time.}\n{=(ext):{li1(1):{extensions(1)}}{extensions(1)} {li1(1):{extensions(2)}}{extensions(2)} {li1(1):{extensions(3)}}{extensions(3)} {li1(1):{extensions(4)}}{extensions(4)} {li1(1):{extensions(5)}}{extensions(5)}}\n\n{=(COMMENT):Checks if the provided URL is a direct image link.}\n{=(isDirect):{contains({li1}):{ext}}}\n\n{=(COMMENT):Returns the proper image depending on the user argument. Returns nothing if it doesn't meet any requirement.}\n{=(img_from_args):{if({user(mention)}=={li1}):{user(avatar)}|{if({isTarget}==true):{target(avatar)}|{and(!={li1}|{isDirect}==true):{li1}}}}}\n\n{=(COMMENT):Returns true if the variable above is not empty; meaning the user specified something valid, so an image link will be displayed in the embed.}\n{=(isImage):{if(!={img_from_args}):true|false}}\n\n{=(COMMENT):Full link to the image URL for the embed.}\n{=(img_url):{if({isImage}==true):{url.prefix}{img_from_args}}}\n\n{=(COMMENT):Output Management.}\n{=(COMMENT):Hyperlink to display to the user after querying.}\n{=(hyperlink):**[{hyperlink.text}]({img_url} \"Google Images - Reverse Search\")**}\n\n{=(COMMENT):Extra line below the hyperlink that shows whose avatar it's querying (granted a user was mentioned), or simply describes that the image below will be the provided image.}\n{=(extra):{any({user(mention)}=={li1}|{isTarget}==true):__**{user(name)}'s Reverse Image Search**__:}}\n\n{=(COMMENT):Returns the actual conditional output in the embed's description field.}\n{=(output):{if({isImage}==true):{hyperlink}\n{extra}|{error.message}}}\n\n{=(embed.color):#0fffff}\n{embed(color):#{replace(#,):{embed.color}}}\n\n{=(embed.footer):{prefix}{tagname} [image link | @user]}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{img_from_args}\"}, \"footer\": {\"text\": \"{server(name)} • {embed.footer} \", \"icon_url\": \"{server(icon)}\"}, \"description\": \"{output}\"}",
"last_fetched": "2026-10-21T00:39:35.807Z"
}