communitymute

Private

Content

58 lines
{=(COMMENT):Created by Archistructure. Co-Author, Editor in Chief: AFK.}
{=():}
{=(COMMENT):Purpose: Community vote-mute. This tag, by default, requires 5 different votes to mute someone, so long as those 5 votes all occur within the same 2 minute period.}
{override}
{silent}

{=(COMMENT):You need x amount of votes in y minutes to mute someone. Below is y minutes.}
{=(nonmuteroleduration):2m}

{=(COMMENT):How often somebody can vote. This should be >= nonmuteroleduration * number of non-mute roles.}
{=(cooldowntime):11m}
{=(COMMENT):You need to make a cooldown role (or use a preexisting one) since we don't have a cooldown block.}
{=(cooldownrole):1312882659904695418}

{=(COMMENT):Change these to roles. Mine are called "Vote Mute 1-4 / 5"}
{=(role1):1312852185820176465}
{=(role2):1312822198604677160}
{=(role3):1312812215117651988}
{=(role4):1312832385980751912}
{=(COMMENT):This is your actual mute role. The previous ones should do nothing.}
{=(muterole):1353455010746859611}

{=(COMMENT): if permanentMute is set to enabled, the mute duration is ignored. Remove enabled from permanentMute to use the duration.}
{=(permanentMute):enabled}
{=(muteduration):24h}

{=(COMMENT): DO NOT MODIFY ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING}
{=(permMute):c:role add {target(id)} {muterole}}
{=(tempMute):c:temprole {target(id)} {muteduration} {muterole}}
{=(muteCommand):{{if(enabled=={lower:{permanentMute}}):permMute|tempMute}}}
{=(cooldownCommand):c:temprole {user(id)} {cooldowntime} {cooldownrole}}

{=(checkVotes):{contains({role1}):{target(roleids)}} {contains({role2}):{target(roleids)}} {contains({role3}):{target(roleids)}} {contains({role4}):{target(roleids)}} {contains({muterole}):{target(roleids)}}}
{=(voteRoles):{role1} {role2} {role3} {role4} {muterole}}
{=(nextVote):{m:trunc({index(false):{checkVotes}}+1)}}
{=(remainingVotes):{m:trunc(4-{index(&£):{join( ):{replace(false,):{checkVotes}}} &£})}}
{=(vote):{if(5=={nextVote}):{muteCommand}~msg.muted|c:temprole {target(id)} {nonmuteroleduration} {voteRoles({nextVote})}~msg.voted}}

{=(onCooldown):{contains({cooldownrole}):{user(roleids)}}}
{=(targetMentioned):{contains({target(mention)}):{join():{args}}}}
{=(selfMention):{contains({target(mention)}):{user(mention)}}}
{=(targetMuted):{contains({muterole}):{target(roleids)}}}

{=(checks):{in(false true false false):{onCooldown} {targetMentioned} {selfMention} {targetMuted}}}

{=(msg.muted):**{target}** has been muted by the community.}
{=(msg.voted):**{user}** has voted to community mute **{target}**, {remainingVotes} more votes needed.}

{=(output):{if(true=={checks}):{vote}~{cooldownCommand}}}
{{list(0):{output}}}
{{list(1):{output}}}
{{list(2):{output}}}

{=(error.mention):- **{user}**, you must mention a member to vote for to community mute them!}
{=(error.muted):- **{target}** is already community muted.}
{=(error.cooldown):- You are on cooldown and cannot community vote to mute.}

{{any(false=={targetMentioned}|true=={selfMention}):error.mention|{if(true=={targetMuted}):error.muted|{if(true=={onCooldown}):error.cooldown}}}}
Raw JSON
{
  "id": 2163744,
  "created_at": "2024-12-01T21:26:35.000Z",
  "tag_name": "communitymute",
  "nsfw": false,
  "owner_id": "1131306868321562664",
  "uses": 0,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "1253434388482359357",
  "sharer": "1131306868321562664",
  "content": "{=(COMMENT):Created by Archistructure. Co-Author, Editor in Chief: AFK.}\n{=():}\n{=(COMMENT):Purpose: Community vote-mute. This tag, by default, requires 5 different votes to mute someone, so long as those 5 votes all occur within the same 2 minute period.}\n{override}\n{silent}\n\n{=(COMMENT):You need x amount of votes in y minutes to mute someone. Below is y minutes.}\n{=(nonmuteroleduration):2m}\n\n{=(COMMENT):How often somebody can vote. This should be >= nonmuteroleduration * number of non-mute roles.}\n{=(cooldowntime):11m}\n{=(COMMENT):You need to make a cooldown role (or use a preexisting one) since we don't have a cooldown block.}\n{=(cooldownrole):1312882659904695418}\n\n{=(COMMENT):Change these to roles. Mine are called \"Vote Mute 1-4 / 5\"}\n{=(role1):1312852185820176465}\n{=(role2):1312822198604677160}\n{=(role3):1312812215117651988}\n{=(role4):1312832385980751912}\n{=(COMMENT):This is your actual mute role. The previous ones should do nothing.}\n{=(muterole):1353455010746859611}\n\n{=(COMMENT): if permanentMute is set to enabled, the mute duration is ignored. Remove enabled from permanentMute to use the duration.}\n{=(permanentMute):enabled}\n{=(muteduration):24h}\n\n{=(COMMENT): DO NOT MODIFY ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING}\n{=(permMute):c:role add {target(id)} {muterole}}\n{=(tempMute):c:temprole {target(id)} {muteduration} {muterole}}\n{=(muteCommand):{{if(enabled=={lower:{permanentMute}}):permMute|tempMute}}}\n{=(cooldownCommand):c:temprole {user(id)} {cooldowntime} {cooldownrole}}\n\n{=(checkVotes):{contains({role1}):{target(roleids)}} {contains({role2}):{target(roleids)}} {contains({role3}):{target(roleids)}} {contains({role4}):{target(roleids)}} {contains({muterole}):{target(roleids)}}}\n{=(voteRoles):{role1} {role2} {role3} {role4} {muterole}}\n{=(nextVote):{m:trunc({index(false):{checkVotes}}+1)}}\n{=(remainingVotes):{m:trunc(4-{index(&£):{join( ):{replace(false,):{checkVotes}}} &£})}}\n{=(vote):{if(5=={nextVote}):{muteCommand}~msg.muted|c:temprole {target(id)} {nonmuteroleduration} {voteRoles({nextVote})}~msg.voted}}\n\n{=(onCooldown):{contains({cooldownrole}):{user(roleids)}}}\n{=(targetMentioned):{contains({target(mention)}):{join():{args}}}}\n{=(selfMention):{contains({target(mention)}):{user(mention)}}}\n{=(targetMuted):{contains({muterole}):{target(roleids)}}}\n\n{=(checks):{in(false true false false):{onCooldown} {targetMentioned} {selfMention} {targetMuted}}}\n\n{=(msg.muted):**{target}** has been muted by the community.}\n{=(msg.voted):**{user}** has voted to community mute **{target}**, {remainingVotes} more votes needed.}\n\n{=(output):{if(true=={checks}):{vote}~{cooldownCommand}}}\n{{list(0):{output}}}\n{{list(1):{output}}}\n{{list(2):{output}}}\n\n{=(error.mention):- **{user}**, you must mention a member to vote for to community mute them!}\n{=(error.muted):- **{target}** is already community muted.}\n{=(error.cooldown):- You are on cooldown and cannot community vote to mute.}\n\n{{any(false=={targetMentioned}|true=={selfMention}):error.mention|{if(true=={targetMuted}):error.muted|{if(true=={onCooldown}):error.cooldown}}}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T19:47:37.763Z"
}