linktest
Prints the game name out of a greenmangaming.com link. Can be extendable but currently works with 8 words maximum ("PC" included). Capitalizes the first letter of every word, except when the game name contains "of" or "the" in it, and always capitalizes "PC". Usage Example: !linktest https://www.greenmangaming.com/games/shadow-of-the-tomb-raider-definitive-edition-pc/ Will return: Shadow of the Tomb Raider Definitive Edition PC
Sharedunrated
Content
30 lines{=(game):{replace(-, ):{replace(/,):{args(2+):games/}}}}
{=(1st):{replace(, ):{list(0):{join(,):{game}}}}}
{=(1w):{upper:{1st(2)}}{join():{1st(3+)}}}
{=(2nd):{replace(, ):{list(1):{join(,):{game}}}}}
{=(2w):{upper:{2nd(2)}}{join():{2nd(3+)}}}
{=(3rd):{replace(, ):{list(2):{join(,):{game}}}}}
{=(3w):{upper:{3rd(2)}}{join():{3rd(3+)}}}
{=(4th):{replace(, ):{list(3):{join(,):{game}}}}}
{=(4w):{upper:{4th(2)}}{join():{4th(3+)}}}
{=(5th):{replace(, ):{list(4):{join(,):{game}}}}}
{=(5w):{upper:{5th(2)}}{join():{5th(3+)}}}
{=(6th):{replace(, ):{list(5):{join(,):{game}}}}}
{=(6w):{upper:{6th(2)}}{join():{6th(3+)}}}
{=(7th):{replace(, ):{list(6):{join(,):{game}}}}}
{=(7w):{upper:{7th(2)}}{join():{7th(3+)}}}
{=(8th):{replace(, ):{list(7):{join(,):{game}}}}}
{=(8w):{upper:{8th(2)}}{join():{8th(3+)}}}
{=(msg):{replace(Of,of):{replace(Pc,PC):{1w} {2w} {3w} {4w} {5w} {6w} {7w} {8w}}}}
{=(output):{if({contains(The):{msg(1)}}==false):{replace(The,the):{msg}}|{msg}}}
{output}Raw JSON
{
"id": 100479,
"created_at": "2019-12-21T14:14:12.000Z",
"tag_name": "linktest",
"nsfw": false,
"owner_id": "149926720114262016",
"uses": 57,
"description": "Prints the game name out of a greenmangaming.com link. Can be extendable but currently works with 8 words maximum (\"PC\" included).\nCapitalizes the first letter of every word, except when the game name contains \"of\" or \"the\" in it, and always capitalizes \"PC\".\n\nUsage Example:\n!linktest https://www.greenmangaming.com/games/shadow-of-the-tomb-raider-definitive-edition-pc/\n\nWill return: Shadow of the Tomb Raider Definitive Edition PC",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "314660900302749696",
"sharer": "149926720114262016",
"content": "{=(game):{replace(-, ):{replace(/,):{args(2+):games/}}}}\n\n{=(1st):{replace(, ):{list(0):{join(,):{game}}}}}\n{=(1w):{upper:{1st(2)}}{join():{1st(3+)}}}\n\n{=(2nd):{replace(, ):{list(1):{join(,):{game}}}}}\n{=(2w):{upper:{2nd(2)}}{join():{2nd(3+)}}}\n\n{=(3rd):{replace(, ):{list(2):{join(,):{game}}}}}\n{=(3w):{upper:{3rd(2)}}{join():{3rd(3+)}}}\n\n{=(4th):{replace(, ):{list(3):{join(,):{game}}}}}\n{=(4w):{upper:{4th(2)}}{join():{4th(3+)}}}\n\n{=(5th):{replace(, ):{list(4):{join(,):{game}}}}}\n{=(5w):{upper:{5th(2)}}{join():{5th(3+)}}}\n\n{=(6th):{replace(, ):{list(5):{join(,):{game}}}}}\n{=(6w):{upper:{6th(2)}}{join():{6th(3+)}}}\n\n{=(7th):{replace(, ):{list(6):{join(,):{game}}}}}\n{=(7w):{upper:{7th(2)}}{join():{7th(3+)}}}\n\n{=(8th):{replace(, ):{list(7):{join(,):{game}}}}}\n{=(8w):{upper:{8th(2)}}{join():{8th(3+)}}}\n\n{=(msg):{replace(Of,of):{replace(Pc,PC):{1w} {2w} {3w} {4w} {5w} {6w} {7w} {8w}}}}\n{=(output):{if({contains(The):{msg(1)}}==false):{replace(The,the):{msg}}|{msg}}}\n\n{output}",
"embed": "{}",
"last_fetched": "2026-10-20T20:47:48.367Z"
}