revi
Privateunrated
Content
79 lines{=(COMMENT):--- USER SETTINGS ---}
{=(COMMENT):Your main prefix and name of this tag.}
{=(prefix):?}
{=(tagname):revi}
{=(COMMENT):Text that gets displayed for the hyperlink.}
{=(hyperlink.text):Link to Query}
{=(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):Please specify either a direct image link or a user mention.
It will generate a Google Reverse Image Search Link, from your **image URL**, or the **user mention**'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):--- ACTUAL CODE - DO NOT TOUCH ---
Everything below doesn't need to be touched, unless you absolutely wish to tweak it for some reason. Generally avoid it if you don't know what you're doing.}
{=(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):{li1}'s avatar:|Provided image:}}
{=(COMMENT):Returns the actual conditional output in the embed's description field.}
{=(output):{if({isImage}==true):{hyperlink}
{extra}|{error.message}}}
{=(COMMENT):Embed Fields Management.}
{=(COMMENT):Author part, with user static avatar and full name (username and discrim).}
{=(embed.author.url):{replace(.gif,.png):{user(avatar)}}}
{=(embed.author.name):Requested by {user(proper)}}
{=(COMMENT):Title of the Embed.}
{=(embed.title):Google Reverse Image Search}
{=(COMMENT):Side color of the embed. Currently the exact blue color Google uses in its "g" letters in its logo.}
{=(embed.color):#4285F4}
{embed(color):#{replace(#,):{embed.color}}}
{=(COMMENT):Embed footer where command usage is displayed at all times.}
{=(embed.footer):{prefix}{tagname} [image link | user mention]}Embed
1 line{"color": 5198940, "image": {"url": "{img_from_args}"}, "title": "{embed.title}", "author": {"name": "{embed.author.name}", "icon_url": "{embed.author.url}"}, "footer": {"text": "{embed.footer}"}, "description": "{output}"}Raw JSON
{
"id": 534807,
"created_at": "2021-01-14T17:49:30.000Z",
"tag_name": "revi",
"nsfw": false,
"owner_id": "662407182909964288",
"uses": 40,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "686253887211962384",
"sharer": "662407182909964288",
"content": "{=(COMMENT):--- USER SETTINGS ---}\n{=(COMMENT):Your main prefix and name of this tag.}\n{=(prefix):?}\n{=(tagname):revi}\n\n{=(COMMENT):Text that gets displayed for the hyperlink.}\n{=(hyperlink.text):Link to Query}\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):Please 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 the **user mention**'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):--- ACTUAL CODE - DO NOT TOUCH ---\nEverything below doesn't need to be touched, unless you absolutely wish to tweak it for some reason. Generally avoid it if you don't know what you're doing.}\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):{li1}'s avatar:|Provided image:}}\n\n{=(COMMENT):Returns the actual conditional output in the embed's description field.}\n{=(output):{if({isImage}==true):{hyperlink}\n\n{extra}|{error.message}}}\n\n{=(COMMENT):Embed Fields Management.}\n{=(COMMENT):Author part, with user static avatar and full name (username and discrim).}\n{=(embed.author.url):{replace(.gif,.png):{user(avatar)}}}\n{=(embed.author.name):Requested by {user(proper)}}\n\n{=(COMMENT):Title of the Embed.}\n{=(embed.title):Google Reverse Image Search}\n\n{=(COMMENT):Side color of the embed. Currently the exact blue color Google uses in its \"g\" letters in its logo.}\n{=(embed.color):#4285F4}\n{embed(color):#{replace(#,):{embed.color}}}\n\n{=(COMMENT):Embed footer where command usage is displayed at all times.}\n{=(embed.footer):{prefix}{tagname} [image link | user mention]}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{img_from_args}\"}, \"title\": \"{embed.title}\", \"author\": {\"name\": \"{embed.author.name}\", \"icon_url\": \"{embed.author.url}\"}, \"footer\": {\"text\": \"{embed.footer}\"}, \"description\": \"{output}\"}",
"last_fetched": "2026-10-20T23:48:31.531Z"
}