testafk

Privateunrated

Content

52 lines
{=():}
{=(afknote):{if({args(2+)}!=):**Reason:** {replace(|,│):{replace(~,-):{args(2+)}}}}}

{=(coffset):{m:trunc(2*3600)}}
{=(ctime):{strf({m:trunc({strf:%s}+{coffset})}):%-I:%M%P}}
{=(time):{strf({m:trunc({strf:%s}+{coffset})}):%p}}

{=(L1):{lower:{1}}}
{=(A2+):{replace(|,┃):{args(2+)}}}
{=(on):add}
{=(off):del}
{=():}

{=(afkrole):836730195296780330}
{=(afkcheck):{if({contains({afkrole}):{user(roleids)}}==true):true|false}}
{=(largs):{replace(-,off):{replace(+,on):{lower:{1}}}}}
{=(check):{if({contains({largs}):on off}==true):true|false}}

{=(error):**⭑__ERROR__⭑**
You must follow the `afk` command with either `on` or `off`. }


{=(errorON):**⭑__ERROR__⭑**
**{user}** You already have an active AFK.}
{=(errorOFF):**⭑__ERROR__⭑**
**{user}** You do not have an active AFK.}
{=(confirmON):**⭑__SUCCESS__⭑**
**{replace(|,┃):{user}}** AFK trigger enabled. 
Whenever someone mentions you, it will output the reason you specified.
Use `.afk off` to disable the trigger.

{afknote}}
{=(confirmOFF):**⭑__SUCCESS__⭑**
**{user} ** AFK trigger successfully disabled.
Welcome back!}

{=(descc):{if({check}==false):{error}|{and({largs(1)}==off|{afkcheck}==true):{confirmOFF}|{and({largs(1)}==on|{afkcheck}==false):{confirmON}|{and({largs(1)}==on|{afkcheck}==true):{errorON}|{and({largs(1)}==off|{afkcheck}==false):{errorOFF}}}}}}}


{=(valid):{if({list(0):{join(,):{A2+}}}!=):**{replace(|,┃):{user}}** is currently __AFK.__ 
__**Reason**__: {A2+} 

It is <t:{unix}:t>{time} here!|**{replace(|,┃):{user}}** is __AFK__ right now, send them a PM or wait for them to return. 

It is <t:{unix}:t>{time} here!}}

{=(com1):{if({largs(1)}==on):add {user(id)}> {valid}|{if({largs(1)}==off):del {user(id)}>}}}
{{if({check}==true):c:ar {com1}}}
{=(com2):{if({largs(1)}==on):add|{if({largs(1)}==off):remove}}}

{=(com2):{if({largs(1)}==on):add|{if({largs(1)}==off):remove}}}
{{if({check}==true):c:role {com2} {user(id)} {afkrole}}}

Embed

1 line
{"color": 5198940, "description": "{if({check}==false):{error}|{if({contains({largs}):on off}==true):{descc}|{com1}}}"}
Raw JSON
{
  "id": 1165421,
  "created_at": "2021-11-25T05:26:22.000Z",
  "tag_name": "testafk",
  "nsfw": false,
  "owner_id": "246276708242554890",
  "uses": 65,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "623565888989167627",
  "sharer": "246276708242554890",
  "content": "{=():}\n{=(afknote):{if({args(2+)}!=):**Reason:** {replace(|,│):{replace(~,-):{args(2+)}}}}}\n\n{=(coffset):{m:trunc(2*3600)}}\n{=(ctime):{strf({m:trunc({strf:%s}+{coffset})}):%-I:%M%P}}\n{=(time):{strf({m:trunc({strf:%s}+{coffset})}):%p}}\n\n{=(L1):{lower:{1}}}\n{=(A2+):{replace(|,┃):{args(2+)}}}\n{=(on):add}\n{=(off):del}\n{=():}\n\n{=(afkrole):836730195296780330}\n{=(afkcheck):{if({contains({afkrole}):{user(roleids)}}==true):true|false}}\n{=(largs):{replace(-,off):{replace(+,on):{lower:{1}}}}}\n{=(check):{if({contains({largs}):on off}==true):true|false}}\n\n{=(error):**⭑__ERROR__⭑**\nYou must follow the `afk` command with either `on` or `off`. }\n\n\n{=(errorON):**⭑__ERROR__⭑**\n**{user}** You already have an active AFK.}\n{=(errorOFF):**⭑__ERROR__⭑**\n**{user}** You do not have an active AFK.}\n{=(confirmON):**⭑__SUCCESS__⭑**\n**{replace(|,┃):{user}}** AFK trigger enabled. \nWhenever someone mentions you, it will output the reason you specified.\nUse `.afk off` to disable the trigger.\n\n{afknote}}\n{=(confirmOFF):**⭑__SUCCESS__⭑**\n**{user} ** AFK trigger successfully disabled.\nWelcome back!}\n\n{=(descc):{if({check}==false):{error}|{and({largs(1)}==off|{afkcheck}==true):{confirmOFF}|{and({largs(1)}==on|{afkcheck}==false):{confirmON}|{and({largs(1)}==on|{afkcheck}==true):{errorON}|{and({largs(1)}==off|{afkcheck}==false):{errorOFF}}}}}}}\n\n\n{=(valid):{if({list(0):{join(,):{A2+}}}!=):**{replace(|,┃):{user}}** is currently __AFK.__ \n__**Reason**__: {A2+} \n\nIt is <t:{unix}:t>{time} here!|**{replace(|,┃):{user}}** is __AFK__ right now, send them a PM or wait for them to return. \n\nIt is <t:{unix}:t>{time} here!}}\n\n{=(com1):{if({largs(1)}==on):add {user(id)}> {valid}|{if({largs(1)}==off):del {user(id)}>}}}\n{{if({check}==true):c:ar {com1}}}\n{=(com2):{if({largs(1)}==on):add|{if({largs(1)}==off):remove}}}\n\n{=(com2):{if({largs(1)}==on):add|{if({largs(1)}==off):remove}}}\n{{if({check}==true):c:role {com2} {user(id)} {afkrole}}}",
  "embed": "{\"color\": 5198940, \"description\": \"{if({check}==false):{error}|{if({contains({largs}):on off}==true):{descc}|{com1}}}\"}",
  "last_fetched": "2026-10-20T18:03:34.011Z"
}