goal
Privateunrated
Content
43 lines{=(COMMENT):Variable values that you need to change}
{=(goalInterval):250}
{=(botCount):46}
{=(hexCode):02ff3e}
{del}
{=(COMMENT):Calculating the server goal}
{=(serverHumans):{m:trunc({server(members)}-{botCount})}}
{=(previousGoal):{m:trunc(trunc({serverHumans}/{goalInterval})*{goalInterval})}}
{=(serverGoal):{m:trunc(trunc({serverHumans}/{goalInterval}+1)*{goalInterval})}}
{=(membersPending):{m:trunc({serverGoal}-{serverHumans})}}
{=(percentageAchieved):{m:trunc((({serverGoal}-({membersPending}+{previousGoal}))*100)/{goalInterval})}}
{=(COMMENT):Embed Hex Colour}
{=(i):#:A,B,C,D,E,F,0,1,2,3,4,5,6,7,8,9}
{=(embedHex):{{i}}{{i}}{{i}}{{i}}{{i}}{{i}}}
{embed(color):#{embedHex}}
{=(COMMENT):Embed}
{=(percentageBar):http://www.yarntomato.com/percentbarmaker/button.php?barPosition={percentageAchieved}&leftFill={embedHex}}
{=(icon):{if({in(a_):{server(icon)}}==true):{replace(png,gif):{server(icon)}}|{server(icon)}}}
{=(COMMENT):Debug}
{=(debugMode):OFF}
{=(debug):Debug :
goalInterval - `{goalInterval}`
botCount - `{botCount}`
serverHumans - `{serverHumans}`
previousGoal - `{previousGoal}`
serverGoal - `{serverGoal}`
percentageAchieved - `{percentageAchieved}`
percentageBar - `{percentageBar}`
}
{=(isDebug):{if({lower:{debugMode}}==on):{debug}}}
{isDebug}Embed
1 line{"color": 5198940, "image": {"url": "{percentageBar}"}, "title": "**{server(name)}'s Goal**", "thumbnail": {"url": "{icon}"}, "description": "Our Goal : **{serverGoal}** Members\nServer Members : **{serverHumans}** Members\nMembers needed to complete our goal : **{membersPending}** Members\n\nWe have progressed **{percentageAchieved}%** towards our new goal of **{serverGoal}** Members!"}Raw JSON
{
"id": 1065935,
"created_at": "2021-09-18T16:15:40.000Z",
"tag_name": "goal",
"nsfw": false,
"owner_id": "681414142938316851",
"uses": 2,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "877146086567981057",
"sharer": "681414142938316851",
"content": "{=(COMMENT):Variable values that you need to change}\n\n{=(goalInterval):250}\n{=(botCount):46}\n{=(hexCode):02ff3e}\n{del}\n\n\n{=(COMMENT):Calculating the server goal}\n\n{=(serverHumans):{m:trunc({server(members)}-{botCount})}}\n{=(previousGoal):{m:trunc(trunc({serverHumans}/{goalInterval})*{goalInterval})}}\n{=(serverGoal):{m:trunc(trunc({serverHumans}/{goalInterval}+1)*{goalInterval})}}\n{=(membersPending):{m:trunc({serverGoal}-{serverHumans})}}\n{=(percentageAchieved):{m:trunc((({serverGoal}-({membersPending}+{previousGoal}))*100)/{goalInterval})}}\n\n{=(COMMENT):Embed Hex Colour}\n{=(i):#:A,B,C,D,E,F,0,1,2,3,4,5,6,7,8,9}\n{=(embedHex):{{i}}{{i}}{{i}}{{i}}{{i}}{{i}}}\n{embed(color):#{embedHex}}\n\n{=(COMMENT):Embed}\n{=(percentageBar):http://www.yarntomato.com/percentbarmaker/button.php?barPosition={percentageAchieved}&leftFill={embedHex}}\n{=(icon):{if({in(a_):{server(icon)}}==true):{replace(png,gif):{server(icon)}}|{server(icon)}}}\n\n\n\n{=(COMMENT):Debug}\n\n{=(debugMode):OFF}\n\n{=(debug):Debug :\ngoalInterval - `{goalInterval}`\nbotCount - `{botCount}`\nserverHumans - `{serverHumans}`\npreviousGoal - `{previousGoal}`\nserverGoal - `{serverGoal}`\npercentageAchieved - `{percentageAchieved}`\npercentageBar - `{percentageBar}`\n}\n\n{=(isDebug):{if({lower:{debugMode}}==on):{debug}}}\n{isDebug}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{percentageBar}\"}, \"title\": \"**{server(name)}'s Goal**\", \"thumbnail\": {\"url\": \"{icon}\"}, \"description\": \"Our Goal : **{serverGoal}** Members\\nServer Members : **{serverHumans}** Members\\nMembers needed to complete our goal : **{membersPending}** Members\\n\\nWe have progressed **{percentageAchieved}%** towards our new goal of **{serverGoal}** Members!\"}",
"last_fetched": "2026-10-20T17:37:46.416Z"
}