global-cooldown-feed

Private

Content

41 lines
{=():}
{override}

{=(COMMENT):Configure settings here}
{=(Carl):235148962103951360}
{=(Cooldown.Role):Put ID of the Cooldown role here}
{=(Cooldown.Time):2h}
{=(FeedName):Feed Name Here}
{=(PingRoleName):Role Name Here}

{=(COMMENT):Configure Error Messages Here}
{=(NoRoles.Error):- {user(mention)}, you must have at least 1 role to use this command!}
{=(CarlNotMentioned):- You need to Mention <@{Carl}> to check for Cooldown.}
{=(CarlNotValid):- You must either use Carl as a prefix, otherwise mention him as the first input of the command.
 - if you need to mention carl in the message content, mention him in the first input, then this will allow you to mention him in the content.}
{=(Ping.OnCooldown):- You cannot ping **{PingRoleName}**, it's still on cooldown.}
{=(no.Message):- You have not included a Message.}

{=(COMMENT):DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!}
{=(args2):{list(1):{join(~):{args(+2)}}}}
{=(isCarlTarget):{contains({Carl}):{target(id)}}}
{=(isCarlMentioned):{contains(<@{Carl}>):{args(1)}}}
{=(isCarlValid):{if(false=={in(<@{Carl}>):{args}}):true|{if(true=={isCarlMentioned}):true|false}}}
{=(isMessageEmpty):{if(true=={isCarlTarget}):{if(true=={isCarlMentioned}):{contains(彡):彡{args2}}|{contains(彡):彡{args(1)}}}|true}}
{=(isPingOnCooldown):{contains({Cooldown.Role}):{target(roleids)}}}
{=(isUserRolesEmpty):{contains(彡):彡{user(roleids)}}}

{=(COMMENT):Configure Command Blocks Here}
{=(Message):{{if(true=={isCarlMentioned}):args(2+)|args}}}
{=(feed.command):c:feed announce {FeedName} {Message}}
{=(cooldown.command):c:temprole {Carl} {Cooldown.Role} {Cooldown.Time}}

{=(COMMENT):DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!}
{=(is.checks):{in(true true false false false):{isCarlTarget} {isCarlValid} {isPingOnCooldown} {isMessageEmpty} {isUserRolesEmpty}}}

{=(run.cmds):{if(true=={is.checks}):cooldown.command~feed.command}}
{{{list(0):{run.cmds}}}}
{{{list(1):{run.cmds}}}}

{=(errors):{if(true=={isUserRolesEmpty}):NoRoles.Error|{if(false=={isCarlTarget}):CarlNotMentioned|{if(false=={isCarlValid}):CarlNotValid|{if(true=={isPingOnCooldown}):Ping.OnCooldown|{if(true=={isMessageEmpty}):no.Message}}}}}}
{{errors}}
Raw JSON
{
  "id": 2071874,
  "created_at": "2024-07-27T20:48:17.000Z",
  "tag_name": "global-cooldown-feed",
  "nsfw": false,
  "owner_id": "602615705015156736",
  "uses": 4,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "1039570200544170025",
  "sharer": "602615705015156736",
  "content": "{=():}\n{override}\n\n{=(COMMENT):Configure settings here}\n{=(Carl):235148962103951360}\n{=(Cooldown.Role):Put ID of the Cooldown role here}\n{=(Cooldown.Time):2h}\n{=(FeedName):Feed Name Here}\n{=(PingRoleName):Role Name Here}\n\n{=(COMMENT):Configure Error Messages Here}\n{=(NoRoles.Error):- {user(mention)}, you must have at least 1 role to use this command!}\n{=(CarlNotMentioned):- You need to Mention <@{Carl}> to check for Cooldown.}\n{=(CarlNotValid):- You must either use Carl as a prefix, otherwise mention him as the first input of the command.\n - if you need to mention carl in the message content, mention him in the first input, then this will allow you to mention him in the content.}\n{=(Ping.OnCooldown):- You cannot ping **{PingRoleName}**, it's still on cooldown.}\n{=(no.Message):- You have not included a Message.}\n\n{=(COMMENT):DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!}\n{=(args2):{list(1):{join(~):{args(+2)}}}}\n{=(isCarlTarget):{contains({Carl}):{target(id)}}}\n{=(isCarlMentioned):{contains(<@{Carl}>):{args(1)}}}\n{=(isCarlValid):{if(false=={in(<@{Carl}>):{args}}):true|{if(true=={isCarlMentioned}):true|false}}}\n{=(isMessageEmpty):{if(true=={isCarlTarget}):{if(true=={isCarlMentioned}):{contains(彡):彡{args2}}|{contains(彡):彡{args(1)}}}|true}}\n{=(isPingOnCooldown):{contains({Cooldown.Role}):{target(roleids)}}}\n{=(isUserRolesEmpty):{contains(彡):彡{user(roleids)}}}\n\n{=(COMMENT):Configure Command Blocks Here}\n{=(Message):{{if(true=={isCarlMentioned}):args(2+)|args}}}\n{=(feed.command):c:feed announce {FeedName} {Message}}\n{=(cooldown.command):c:temprole {Carl} {Cooldown.Role} {Cooldown.Time}}\n\n{=(COMMENT):DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!}\n{=(is.checks):{in(true true false false false):{isCarlTarget} {isCarlValid} {isPingOnCooldown} {isMessageEmpty} {isUserRolesEmpty}}}\n\n{=(run.cmds):{if(true=={is.checks}):cooldown.command~feed.command}}\n{{{list(0):{run.cmds}}}}\n{{{list(1):{run.cmds}}}}\n\n{=(errors):{if(true=={isUserRolesEmpty}):NoRoles.Error|{if(false=={isCarlTarget}):CarlNotMentioned|{if(false=={isCarlValid}):CarlNotValid|{if(true=={isPingOnCooldown}):Ping.OnCooldown|{if(true=={isMessageEmpty}):no.Message}}}}}}\n{{errors}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T19:41:39.347Z"
}