bday
Birthday tag by Asty' - Work In Progress!
Privateunrated
Content
61 lines{=(Comment):Set up}
{=(chan):announcements}
{=(notifroleID):666423636374061056}
{=(notifrolen):BdayNotif}
{=(alreadyrole):669157355107385389}
{=(premium):no}
{=(cmdchan):337040974415003649}
{=(pref):!}
{=(tagn):bday}
{=():}
{=(months):jan january feb february mar march apr april may jun june jul july aug august sep september oct october nov november dec december}
{=(month):{if({contains({lower:{1}}):{months}}==true):{1}}}
{=(cmonth):{if({contains({lower:{1}}):{months}}==true):true}}
{=(lmonth):{lower:{month}}}
{=(yn):1 2 3 4 5 6 7 8 9 0}
{=(syn):{replace(, ):{3}}}
{=(synl):{index($&):{syn} $&}}
{=(checksyn):{all({3}!=|{synl}==4|{contains({syn(2)}):{yn}}==true|{contains({syn(3)}):{yn}}==true|{contains({syn(4)}):{yn}}==true|{contains({syn(5)}):{yn}}==true|{3}>=1960|{3}<={m:trunc({strf:%Y}-13)}):true|false}}
{=(year):{if({checksyn}==true):{3}}}
{=(age):They are **{m:trunc({strf:%Y}-{year})}** years old!}
{=(days):01 02 03 04 05 06 07 08 09 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31}
{=(feb):{all({in(feb):{lmonth}}==true|{2}<=29):true}}
{=(apr):{all({in(apr):{lmonth}}==true|{2}<=30):true}}
{=(jun):{all({in(jun):{lmonth}}==true|{2}<=30):true}}
{=(sep):{all({in(sep):{lmonth}}==true|{2}<=30):true}}
{=(nov):{all({in(nov):{lmonth}}==true|{2}<=30):true}}
{=(cday):{all({2}!=|{contains({2}):{days}}==true):{or({feb}==true|{apr}==true|{jun}==true|{sep}==true|{nov}==true):true|false}}}
{=(day):{if({cday}==true):{2}}}
{=(bdaym):It's {user(mention)}'s birthday today! {if({checksyn}==true):{age}}
Make sure to wish it to them!
Add your own using ``{pref}{tagn} Month Day [Optional Year]``, such as ``{pref}{tagn} July 26 1995``, in <#{cmdchan}>!
*Adding the year will add your age in the birthday announcement. It's optional and only if you want to.*}
{=(fmt):{if({checksyn}==false):{1} {2}|{1} {2} {year}}}
{=(noposs):{user}, the day and month you specified don't match. Please try again.
Usage: ``{pref}{tagn} Month Day [Optional Year]``
Example: ``{pref}{tagn} July 26 1995``
*Adding the year will add your age in the birthday announcement. It's optional and only if you want to.*}
{=(success):**{user}**, you successfully added **{fmt}** as your birthday on this server! The <@&{notifroleID}> role will be notified on your birthday!}
{=(poss):{all({cmonth}==true|{cday}==true):true|false}}
{=(output):{if({poss}==true):{success}|{noposs}}}
{override}
{blacklist({user}, you already added your birthday on this server! Contact a Staff member if a problem occurred.):{alreadyrole}}
{{if({poss}==true):c:af "{notifroleID}" {month} {day} at 12 PM {bdaym}}}
{{any({premium}==yes|{premium}==true):c:role add {user(id)} {alreadyrole}}}
{output}Raw JSON
{
"id": 108571,
"created_at": "2020-01-14T00:17:27.000Z",
"tag_name": "bday",
"nsfw": false,
"owner_id": "149926720114262016",
"uses": 59,
"description": "Birthday tag by Asty' - Work In Progress!",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "314660900302749696",
"sharer": "149926720114262016",
"content": "{=(Comment):Set up}\n{=(chan):announcements}\n{=(notifroleID):666423636374061056}\n{=(notifrolen):BdayNotif}\n{=(alreadyrole):669157355107385389}\n{=(premium):no}\n\n{=(cmdchan):337040974415003649}\n\n{=(pref):!}\n{=(tagn):bday}\n\n{=():}\n{=(months):jan january feb february mar march apr april may jun june jul july aug august sep september oct october nov november dec december}\n{=(month):{if({contains({lower:{1}}):{months}}==true):{1}}}\n{=(cmonth):{if({contains({lower:{1}}):{months}}==true):true}}\n{=(lmonth):{lower:{month}}}\n\n{=(yn):1 2 3 4 5 6 7 8 9 0}\n{=(syn):{replace(, ):{3}}}\n{=(synl):{index($&):{syn} $&}}\n{=(checksyn):{all({3}!=|{synl}==4|{contains({syn(2)}):{yn}}==true|{contains({syn(3)}):{yn}}==true|{contains({syn(4)}):{yn}}==true|{contains({syn(5)}):{yn}}==true|{3}>=1960|{3}<={m:trunc({strf:%Y}-13)}):true|false}}\n{=(year):{if({checksyn}==true):{3}}}\n\n{=(age):They are **{m:trunc({strf:%Y}-{year})}** years old!}\n\n{=(days):01 02 03 04 05 06 07 08 09 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31}\n\n{=(feb):{all({in(feb):{lmonth}}==true|{2}<=29):true}}\n{=(apr):{all({in(apr):{lmonth}}==true|{2}<=30):true}}\n{=(jun):{all({in(jun):{lmonth}}==true|{2}<=30):true}}\n{=(sep):{all({in(sep):{lmonth}}==true|{2}<=30):true}}\n{=(nov):{all({in(nov):{lmonth}}==true|{2}<=30):true}}\n\n{=(cday):{all({2}!=|{contains({2}):{days}}==true):{or({feb}==true|{apr}==true|{jun}==true|{sep}==true|{nov}==true):true|false}}}\n{=(day):{if({cday}==true):{2}}}\n\n{=(bdaym):It's {user(mention)}'s birthday today! {if({checksyn}==true):{age}}\nMake sure to wish it to them!\n\nAdd your own using ``{pref}{tagn} Month Day [Optional Year]``, such as ``{pref}{tagn} July 26 1995``, in <#{cmdchan}>!\n*Adding the year will add your age in the birthday announcement. It's optional and only if you want to.*}\n\n{=(fmt):{if({checksyn}==false):{1} {2}|{1} {2} {year}}}\n\n{=(noposs):{user}, the day and month you specified don't match. Please try again.\nUsage: ``{pref}{tagn} Month Day [Optional Year]``\nExample: ``{pref}{tagn} July 26 1995``\n*Adding the year will add your age in the birthday announcement. It's optional and only if you want to.*}\n{=(success):**{user}**, you successfully added **{fmt}** as your birthday on this server! The <@&{notifroleID}> role will be notified on your birthday!}\n\n{=(poss):{all({cmonth}==true|{cday}==true):true|false}}\n{=(output):{if({poss}==true):{success}|{noposs}}}\n\n{override}\n{blacklist({user}, you already added your birthday on this server! Contact a Staff member if a problem occurred.):{alreadyrole}}\n\n{{if({poss}==true):c:af \"{notifroleID}\" {month} {day} at 12 PM {bdaym}}}\n{{any({premium}==yes|{premium}==true):c:role add {user(id)} {alreadyrole}}}\n\n{output}",
"embed": "{}",
"last_fetched": "2026-10-20T20:52:37.780Z"
}