rtr

Privateunrated

Content

51 lines
{=(TagName):rtr}
{=(prefix):!}

{=(COMMENT):Roles that can only use the command.}
{=(moderatorRoles):}

{=(COMMENT):Channel for the "mod-log" message to be sent to.}
{=(modChannel):948562212501463040}

{=(COMMENT):Default duration if none is specified.}
{=(defaultDuration):1 hour}

{=(COMMENT):Read the rules role id \/}
{=(role_ID):904727959762509894}

{require( ):{moderatorRoles}}
{override}

{=(COMMENT):Not much to customize or change after this line.}

{=(jargs):{join(~):{args}}}
{=(arg1):{list(0):{jargs}}}
{=(arg2):{list(1):{jargs}}}

{=(offender):{and({user(id)}=={target(id)}|{m:sgn({arg1})}==1):<@{arg1}>|{target(mention)}}}
{=(id):{and({user(id)}=={target(id)}|{m:sgn({arg1})}==1):{arg1}|{target(id)}}}
{=(moderator):{user(proper)}}

{=(time):{lower:{replace(, ):{arg2}}}}
{=(time):{join():{if({time(-1)}==s):{time(+-2)}|{time}}}}

{=(time):{replace(m,60):{replace(h,3600):{replace(d,86400):{replace(w,604800):{replace(mo,2592000):{replace(y,5184000):{replace(minute,60):{replace(hour,3600):{replace(day,86400):{replace(week,604800):{replace(month,2592000):{replace(year,5184000):{time}}}}}}}}}}}}}}
{=(timeCheck):{if({m:sgn({time})}==1):true|false}}

{=(duration):{if({timeCheck}==true):{arg2}|{defaultDuration}}}
{=(durationUnit):{replace(0,):{replace(1,):{replace(2,):{replace(3,):{replace(4,):{replace(5,):{replace(6,):{replace(7,):{replace(8,):{replace(9,):{arg2}}}}}}}}}}}}
{=(durationDisplay):{if({timeCheck}==true):{arg2(1):{durationUnit}} {durationUnit}|{defaultDuration}}}

{=(reason):{if({timeCheck}==true):{args(3+)}|{args(2+)}}}
{=(reason):{if(=={reason}):No reason given.|{reason}}}

{=(length):{index(!!!!):{args} !!!!}}

{=(msg.success):{"title":"Locked to the #rules channel","description":"**Offender:** {offender}\n**Duration:** {durationDisplay}\n**Reason:** {reason}\n**Responsible Moderator:** {moderator}","color":7506394,"timestamp": "{strf:%FT%T}.000Z", "footer":{"text":"ID: {id}"}}}
{=(msg.error):```{prefix}{TagName} <member> [duration] [reason]
     ^^^^^^^^
member is a required argument that is missing.```}

{=():}
{{if({length}>0):c:temprole {arg1} {duration} {role_ID}}}
{{if({length}>0):c:cembed {modChannel} {msg.success}|msg.error}}
Raw JSON
{
  "id": 1374028,
  "created_at": "2022-04-26T10:38:41.696Z",
  "tag_name": "rtr",
  "nsfw": false,
  "owner_id": "646441336152784954",
  "uses": 11,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "901249574147072120",
  "sharer": "646441336152784954",
  "content": "{=(TagName):rtr}\n{=(prefix):!}\n\n{=(COMMENT):Roles that can only use the command.}\n{=(moderatorRoles):}\n\n{=(COMMENT):Channel for the \"mod-log\" message to be sent to.}\n{=(modChannel):948562212501463040}\n\n{=(COMMENT):Default duration if none is specified.}\n{=(defaultDuration):1 hour}\n\n{=(COMMENT):Read the rules role id \\/}\n{=(role_ID):904727959762509894}\n\n{require( ):{moderatorRoles}}\n{override}\n\n{=(COMMENT):Not much to customize or change after this line.}\n\n{=(jargs):{join(~):{args}}}\n{=(arg1):{list(0):{jargs}}}\n{=(arg2):{list(1):{jargs}}}\n\n{=(offender):{and({user(id)}=={target(id)}|{m:sgn({arg1})}==1):<@{arg1}>|{target(mention)}}}\n{=(id):{and({user(id)}=={target(id)}|{m:sgn({arg1})}==1):{arg1}|{target(id)}}}\n{=(moderator):{user(proper)}}\n\n{=(time):{lower:{replace(, ):{arg2}}}}\n{=(time):{join():{if({time(-1)}==s):{time(+-2)}|{time}}}}\n\n{=(time):{replace(m,60):{replace(h,3600):{replace(d,86400):{replace(w,604800):{replace(mo,2592000):{replace(y,5184000):{replace(minute,60):{replace(hour,3600):{replace(day,86400):{replace(week,604800):{replace(month,2592000):{replace(year,5184000):{time}}}}}}}}}}}}}}\n{=(timeCheck):{if({m:sgn({time})}==1):true|false}}\n\n{=(duration):{if({timeCheck}==true):{arg2}|{defaultDuration}}}\n{=(durationUnit):{replace(0,):{replace(1,):{replace(2,):{replace(3,):{replace(4,):{replace(5,):{replace(6,):{replace(7,):{replace(8,):{replace(9,):{arg2}}}}}}}}}}}}\n{=(durationDisplay):{if({timeCheck}==true):{arg2(1):{durationUnit}} {durationUnit}|{defaultDuration}}}\n\n{=(reason):{if({timeCheck}==true):{args(3+)}|{args(2+)}}}\n{=(reason):{if(=={reason}):No reason given.|{reason}}}\n\n{=(length):{index(!!!!):{args} !!!!}}\n\n{=(msg.success):{\"title\":\"Locked to the #rules channel\",\"description\":\"**Offender:** {offender}\\n**Duration:** {durationDisplay}\\n**Reason:** {reason}\\n**Responsible Moderator:** {moderator}\",\"color\":7506394,\"timestamp\": \"{strf:%FT%T}.000Z\", \"footer\":{\"text\":\"ID: {id}\"}}}\n{=(msg.error):```{prefix}{TagName} <member> [duration] [reason]\n     ^^^^^^^^\nmember is a required argument that is missing.```}\n\n{=():}\n{{if({length}>0):c:temprole {arg1} {duration} {role_ID}}}\n{{if({length}>0):c:cembed {modChannel} {msg.success}|msg.error}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T18:45:34.379Z"
}