afk

Privateunrated

Content

55 lines
{=(❗):This tag requires premium and utilizes the AR and role commands. You must create an AFK role, allow it to display separately, and hoist it above your standard displaying member role if you want AFK members to receive a new color and display separately when they are online.}
{=(🔴):Code, do not alter.}
{override}
{delete}
{silent}
{embed(color):#ffffff}
{=():}
{=(🟢):Replace with your servers Carl-Bot prefix and desired tag name below.} 
{=(pre):!}
{=(tag):afk}
{=(🟢):Replace with the numeric ID of your AFK role below.}
{=(afkrole):912874171212652565}
{=(🛑):No further customization. Code continues til the end. Do not alter.}
{=(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}}
{=(em1):<:afkP1:912819391563964427><:afkP2:912819442642215003>}
{=(em2):<a:1discguy:912802393350099054>}
{=(em3):<a:discguyerror:912802635332087838>}
{=(em4):<:MCarrowR:912845659374231603> }
{=(em5):<:afkstar2:911217011240091679>}
{=(ts):{unix}}
{=(afktime):**{em4}<t:{ts}:R>{em5}<t:{ts}:t>{em5}<t:{ts}:d>**}
{=(tname):{user(id)}>}
{=(afkmember):**{replace(|,│):{replace(~,-):{user(nick)}}}**}
{=(afknote):{if({args(2+)}!=):**{em4}AFK:** {replace(|,│):{replace(~,-):{args(2+)}}}}}

{=(error):**{em3}⭑__ERROR__⭑{em3}**
{em4}Follow the command with either "off" or "on". 
{em4}An optional reason may be included after "on".

**COMMAND:** `{pre}{tag} <off│on> (reason)`
**USAGE:** `{pre}{tag} on Losing my sanity, go away.`
**USAGE:** `{pre}{tag} on`
**USAGE:** `{pre}{tag} off`}
{=(errorON):**{em3}⭑__ERROR__⭑{em3}**
{em4}You already have an active AFK.}
{=(errorOFF):**{em3}⭑__ERROR__⭑{em3}**
{em4}You do not have an active AFK.}
{=(confirmON):{em2}**⭑__SUCCESS__⭑**{em2}
{em4}You have been marked as AFK.
{afknote}}
{=(confirmOFF):{em2}**⭑__SUCCESS__⭑**{em2}
{em4}Your AFK status has been removed.}
{=(valid):{em1} {afkmember} {em1}
{afktime}
{afknote}}

{=(desc):{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}}}}}}}
{=(footer):{pre}{tag} <off│on> (reason)}

{=(com1):{if({largs(1)}==on):add {tname} {valid}|{if({largs(1)}==off):del {tname}}}}
{{if({check}==true):c:ar {com1}}}
{=(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, "footer": {"text": "{footer}"}, "description": "{desc}"}
Raw JSON
{
  "id": 1163543,
  "created_at": "2021-11-24T01:13:56.000Z",
  "tag_name": "afk",
  "nsfw": false,
  "owner_id": "898051496229339186",
  "uses": 46,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "904093118771634196",
  "sharer": "898051496229339186",
  "content": "{=(❗):This tag requires premium and utilizes the AR and role commands. You must create an AFK role, allow it to display separately, and hoist it above your standard displaying member role if you want AFK members to receive a new color and display separately when they are online.}\n{=(🔴):Code, do not alter.}\n{override}\n{delete}\n{silent}\n{embed(color):#ffffff}\n{=():}\n{=(🟢):Replace with your servers Carl-Bot prefix and desired tag name below.} \n{=(pre):!}\n{=(tag):afk}\n{=(🟢):Replace with the numeric ID of your AFK role below.}\n{=(afkrole):912874171212652565}\n{=(🛑):No further customization. Code continues til the end. Do not alter.}\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{=(em1):<:afkP1:912819391563964427><:afkP2:912819442642215003>}\n{=(em2):<a:1discguy:912802393350099054>}\n{=(em3):<a:discguyerror:912802635332087838>}\n{=(em4):<:MCarrowR:912845659374231603> }\n{=(em5):<:afkstar2:911217011240091679>}\n{=(ts):{unix}}\n{=(afktime):**{em4}<t:{ts}:R>{em5}<t:{ts}:t>{em5}<t:{ts}:d>**}\n{=(tname):{user(id)}>}\n{=(afkmember):**{replace(|,│):{replace(~,-):{user(nick)}}}**}\n{=(afknote):{if({args(2+)}!=):**{em4}AFK:** {replace(|,│):{replace(~,-):{args(2+)}}}}}\n\n{=(error):**{em3}⭑__ERROR__⭑{em3}**\n{em4}Follow the command with either \"off\" or \"on\". \n{em4}An optional reason may be included after \"on\".\n\n**COMMAND:** `{pre}{tag} <off│on> (reason)`\n**USAGE:** `{pre}{tag} on Losing my sanity, go away.`\n**USAGE:** `{pre}{tag} on`\n**USAGE:** `{pre}{tag} off`}\n{=(errorON):**{em3}⭑__ERROR__⭑{em3}**\n{em4}You already have an active AFK.}\n{=(errorOFF):**{em3}⭑__ERROR__⭑{em3}**\n{em4}You do not have an active AFK.}\n{=(confirmON):{em2}**⭑__SUCCESS__⭑**{em2}\n{em4}You have been marked as AFK.\n{afknote}}\n{=(confirmOFF):{em2}**⭑__SUCCESS__⭑**{em2}\n{em4}Your AFK status has been removed.}\n{=(valid):{em1} {afkmember} {em1}\n{afktime}\n{afknote}}\n\n{=(desc):{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{=(footer):{pre}{tag} <off│on> (reason)}\n\n{=(com1):{if({largs(1)}==on):add {tname} {valid}|{if({largs(1)}==off):del {tname}}}}\n{{if({check}==true):c:ar {com1}}}\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, \"footer\": {\"text\": \"{footer}\"}, \"description\": \"{desc}\"}",
  "last_fetched": "2026-10-20T18:03:27.580Z"
}