bday

Privateunrated

Content

32 lines
{=(Comment):Set up}
{=(chan):birthdays}
{=(chanID):711443106142224415}
{=(notifroleID):711475414027206736}
{=(notifrolen):BdayNotif}
{=(alreadyrole):Birthday}

{=(cmdchanID):708157783660429351}

{=(pref):/}
{=(tagn):bday}

{=(msg):It's {user(mention)}'s birthday today! Make sure to wish it to them!
Add your own using ``/bday June 4`` for example, in <#{cmdchanID}>!}

{=():}
{=(L1):{lower:{args(1)}}}
{=(months):January February March April May June July August September October November December}
{=(month):{all({L1}!=|{in({L1}):{lower:{months}}}==true):{index({L1}):{replace({L1},. {L1} .):{lower:{months}}}}|-1}}

{=(days):{if({month}==-1):-1|{if({month}==2):29|{m:trunc(28+({month}+trunc({month}/8))%2+2%{month}+2*trunc(1/{month}))}}}}
{=(num):{if({2}=={m:trunc({2}/1)}):{2}|0}}
{=(day):{all({num}>0|{num}<={days}):{num}|error}}

{=(noposs):The day and/or month you specified don't match. Please try again. Example Reminder: ``{pref}{tagn} July 26``}
{=(success):{user(mention)}, you have successfully added your birthday on this server! The {notifrolen} role will be notified on your birthday!}
{=(poss):{if({day}==error):noposs|success}}

{override}

{{if({poss}==success):c:autofeed {notifroleID} {month}/{day} 04:00 {msg}}}
{{poss}}
Raw JSON
{
  "id": 183681,
  "created_at": "2022-04-26T10:36:09.064Z",
  "tag_name": "bday",
  "nsfw": false,
  "owner_id": "382280669449158659",
  "uses": 10,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "708157783119233055",
  "sharer": "382280669449158659",
  "content": "{=(Comment):Set up}\n{=(chan):birthdays}\n{=(chanID):711443106142224415}\n{=(notifroleID):711475414027206736}\n{=(notifrolen):BdayNotif}\n{=(alreadyrole):Birthday}\n\n{=(cmdchanID):708157783660429351}\n\n{=(pref):/}\n{=(tagn):bday}\n\n{=(msg):It's {user(mention)}'s birthday today! Make sure to wish it to them!\nAdd your own using ``/bday June 4`` for example, in <#{cmdchanID}>!}\n\n{=():}\n{=(L1):{lower:{args(1)}}}\n{=(months):January February March April May June July August September October November December}\n{=(month):{all({L1}!=|{in({L1}):{lower:{months}}}==true):{index({L1}):{replace({L1},. {L1} .):{lower:{months}}}}|-1}}\n\n{=(days):{if({month}==-1):-1|{if({month}==2):29|{m:trunc(28+({month}+trunc({month}/8))%2+2%{month}+2*trunc(1/{month}))}}}}\n{=(num):{if({2}=={m:trunc({2}/1)}):{2}|0}}\n{=(day):{all({num}>0|{num}<={days}):{num}|error}}\n\n{=(noposs):The day and/or month you specified don't match. Please try again. Example Reminder: ``{pref}{tagn} July 26``}\n{=(success):{user(mention)}, you have successfully added your birthday on this server! The {notifrolen} role will be notified on your birthday!}\n{=(poss):{if({day}==error):noposs|success}}\n\n{override}\n\n{{if({poss}==success):c:autofeed {notifroleID} {month}/{day} 04:00 {msg}}}\n{{poss}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T21:27:47.972Z"
}