mgoal
Set a member goal using tags. Made it as easy to read as possible so that you may learn anything about TSE. How it works? Creates a trigger that contains simple TagScript done by taking a bracket through variables. Enjoy! Tag by Space (UID: 646276399895937025)
Sharedunrated
Content
52 lines{=(READ ME PLEASE):replace the bot count, prefix and the tagname with your server's own count of bot users, prefix, and tag name}
{=(prefix):!}
{=(tagname):mgoal}
{=(bot.count):8}
{=(COMMENT):Outputs by keywords. Do not touch things below this point unless you understand TagScript}
{=({1}):}
{=(create):Successfully created the goal!}
{=(remove):Removed the goal.}
{=(help):List of commands with its subcommands:
`{prefix}{tagname} create <number>` - Create a goal
`{prefix}{tagname} track` - Tracks your goal
`{prefix}{tagname} remove` - Removes the current goal
`{prefix}{tagname} help` - Gives you this list of commands}
{{1}}
{=(COMMENT):Creates a variable that returns both opening and close brackets}
{=( ):{ }}
{=(LB):{ (1)}}
{=(RB):{ (2)}}
{=(COMMENT):ERROR MESSAGES}
{=(invalid.args):Invalid arguments. run `{prefix}{tagname} help` for the list of commands and its subcommands}
{=(invalid.value):An invalid value was found at specified number of goals
}
{=(COMMENT):Checks if first argument contains valid arguments. Returns error if it doesn't}
{=(torf):{contains({1}):create help track remove}}
{=(true):=():}
{=(false):blacklist({invalid.args}):{server(id)}}
{{{torf}}}
{=(COMMENT):Checks if second argument is a number. Returns error if it doesn't}
{=(isNum):{and({m:sgn({2})}!=1|create=={1}):no|yes}}
{=(yes):=():}
{=(no):blacklist({invalid.value}):{server(id)}}
{{{isNum}}}
{=(COMMENT):The trigger message}
{=(trigger.message):{LB}=(accurate_human_count):{LB}m:trunc({LB}server(humans){RB}-{bot.count}){RB}{RB}
**{server}**'s Member Goal
```diff
+Target Member Count: {2} members
-Current Member Count: {LB}accurate_human_count{RB} members
```
{LB}if({LB}accurate_human_count{RB}>={2}):We have reached the target goal. Congratulations!|We need {LB}m:trunc({2}-{LB}accurate_human_count{RB}){RB} more members!{RB}}
{=(COMMENT):What behavior block should be the output}
{=(goal.{1}):=():}
{=(goal.remove):c:ar - "{prefix}{tagname} track"}
{=(goal.create):c:ar startswith "{prefix}{tagname} track" {trigger.message}}
{{goal.{1}}}{silence}Raw JSON
{
"id": 598970,
"created_at": "2021-02-11T10:55:56.000Z",
"tag_name": "mgoal",
"nsfw": false,
"owner_id": "646276399895937025",
"uses": 76,
"description": "Set a member goal using tags. Made it as easy to read as possible so that you may learn anything about TSE. \n\nHow it works? \nCreates a trigger that contains simple TagScript done by taking a bracket through variables.\n\nEnjoy!\n\nTag by Space (UID: 646276399895937025)\n\n\n",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "765906329356861460",
"sharer": "646276399895937025",
"content": "{=(READ ME PLEASE):replace the bot count, prefix and the tagname with your server's own count of bot users, prefix, and tag name}\n{=(prefix):!}\n{=(tagname):mgoal}\n{=(bot.count):8}\n\n{=(COMMENT):Outputs by keywords. Do not touch things below this point unless you understand TagScript}\n{=({1}):}\n{=(create):Successfully created the goal!}\n{=(remove):Removed the goal.}\n{=(help):List of commands with its subcommands:\n`{prefix}{tagname} create <number>` - Create a goal\n`{prefix}{tagname} track` - Tracks your goal\n`{prefix}{tagname} remove` - Removes the current goal\n`{prefix}{tagname} help` - Gives you this list of commands}\n{{1}}\n\n{=(COMMENT):Creates a variable that returns both opening and close brackets}\n{=( ):{ }}\n{=(LB):{ (1)}}\n{=(RB):{ (2)}}\n\n{=(COMMENT):ERROR MESSAGES}\n{=(invalid.args):Invalid arguments. run `{prefix}{tagname} help` for the list of commands and its subcommands}\n{=(invalid.value):An invalid value was found at specified number of goals\n}\n\n{=(COMMENT):Checks if first argument contains valid arguments. Returns error if it doesn't}\n{=(torf):{contains({1}):create help track remove}}\n{=(true):=():}\n{=(false):blacklist({invalid.args}):{server(id)}}\n{{{torf}}}\n\n{=(COMMENT):Checks if second argument is a number. Returns error if it doesn't}\n{=(isNum):{and({m:sgn({2})}!=1|create=={1}):no|yes}}\n{=(yes):=():}\n{=(no):blacklist({invalid.value}):{server(id)}}\n{{{isNum}}}\n\n{=(COMMENT):The trigger message}\n{=(trigger.message):{LB}=(accurate_human_count):{LB}m:trunc({LB}server(humans){RB}-{bot.count}){RB}{RB}\n**{server}**'s Member Goal\n```diff\n+Target Member Count: {2} members\n-Current Member Count: {LB}accurate_human_count{RB} members\n```\n{LB}if({LB}accurate_human_count{RB}>={2}):We have reached the target goal. Congratulations!|We need {LB}m:trunc({2}-{LB}accurate_human_count{RB}){RB} more members!{RB}}\n\n{=(COMMENT):What behavior block should be the output}\n{=(goal.{1}):=():}\n{=(goal.remove):c:ar - \"{prefix}{tagname} track\"}\n{=(goal.create):c:ar startswith \"{prefix}{tagname} track\" {trigger.message}}\n{{goal.{1}}}{silence}",
"embed": "{}",
"last_fetched": "2026-10-20T15:12:31.461Z"
}