mahajan

Privateunrated

Content

124 lines
{=(COMMENT):Change the variables for command to your preferences below}
{=(COMMENT):Offset the time from UTC to your timezone below. Ex:EST is -5}
{=(offset):+5.5}

{=(COMMENT):Add a time in **HH:MM** format in 24hr time, for when you want the morning and night to begin/end}
{=(morning):07:30}
{=(night):20:00}

{=(COMMENT):Fill out the info below that is accurate to your server}
{=(verifyRoleID):819173659821473822}

{=(COMMENT):If you do not want the verify message to redirect to your general chat, leave {channel(id)} instead of the id}
{=(generalChatID):{channel(id)}}

{=(COMMENT):Separate the modroles by a single space}
{=(modRoles):818532598036430929}


{=(COMMENT): START OF COMMAND}
{=(COMMENT):------- Shouldn't need to touch below unless you know what you're doing -------}

{=(COMMENT):Getting todays time offsetted to preffered timezone}
{=(hins):3600}
{=(unix1):{strf:%s}}
{=(today.unix):{m:trunc({unix1}+({hins}*{offset}))}}
{=(today.time):{strf({today.unix}):%T}}
{=(today.date):{strf({today.unix}):%F}}
{=(tomorrow.date):{strf({m:trunc({today.unix}+({hins}*24))}):%F}}

{=(COMMENT):Finding out the time of day}
{=(today.hourmin):{strf({today.unix}):%H %M}}
{=(morning.unix):{strf({today.date} {morning}:00):%s}}
{=(evening.unix):{strf({if({night}==00:00):{tomorrow.date}|{today.date}} {night}:00):%s}}
{=(noon.unix):{strf({today.date} 12:00:00):%s}}
{=(checkIf.day):{and({today.unix}>={morning.unix}|{today.unix}<={evening.unix}):daytime|nighttime}}
{=(check.tod):{any({today.unix}<{morning.unix}|{today.unix}>{evening.unix}):Good evening|{and({today.unix}>{morning.unix}|{today.unix}<{noon.unix}):Good morning|{and({today.unix}>{noon.unix}|{today.unix}<{evening.unix}):Good afternoon}}}}


{=(COMMENT):------------- BEGINNING OF CLOUDINARY -------------}

{=(COMMENT):Setting default variables}
{=(cloud.urlpre):https://res.cloudinary.com/demo/image/fetch}
{=(daytime.url):https://i.imgur.com/BbzGcvo.jpg}
{=(nighttime.url):https://i.imgur.com/ayGviUn.jpg}
{=(allParas):({args(1)}==add|{target(id)}!={user(id)})}

{=(COMMENT):Getting the username}
{=(username):{and{allParas}:{target(proper)}|{user(proper)}}}
{=(user.disc):{username(1):#}}
{=(s.user):{replace(%2C,%252C):{urlencode:{user.disc}}}}

{=(COMMENT):Getting the welcome title set up}
{=(welcome):{check.tod}, {user.disc}!}
{=(s.welcome):{replace(%2C,%252C):{urlencode:{welcome}}}}
{=(welcMsg):Welcome to {server}!}
{=(s.welcMsg):{replace(%2C,%252C):{urlencode:{welcMsg}}}}

{=(COMMENT):Getting the number of members}
{=(members):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{server(members)}}}}}}}
{=(image.members):You are member number {members}!}
{=(s.members):{replace(%2C,%252C):{urlencode:{image.members}}}}

{=(COMMENT):Setting variables for daytime image}
{=(violet):8085bb}
{=(white):ffffff}
{=(daytime.fonts):orbitron 35 bold}
{=(daytime.fonts.mem):orbitron 17 bold}
{=(pos.daytime.title):north_west 12 12}
{=(pos.daytime.members):south_east 10 35}
{=(pos.daytime.welcome):south_east 10 8}
{=(daytime.crop):w_946,h_286,c_scale/w_0.9,h_0.8,c_crop}

{=(COMMENT):Setting variables for nighttime image}
{=(lightyellow):fddfa3}
{=(darkyellow):e6910c}
{=(nighttime.fonts):orbitron 35 bold}
{=(nighttime.fonts.mem):orbitron 15 bold}
{=(pos.nighttime.title):north_west 12 12}
{=(pos.nighttime.members):south_west 10 13}
{=(pos.nighttime.welcome):south_west 10 35}
{=(nighttime.crop):w_946,h_286,c_scale/w_0.9,h_0.8,c_crop,g_north}

{=(checkColor1):{if({checkIf.day}==daytime):{white}|{if({checkIf.day}==nighttime):{lightyellow}}}}
{=(checkColor2):{if({checkIf.day}==daytime):{violet}|{if({checkIf.day}==nighttime):{darkyellow}}}}

{=(COMMENT):Formatting for Cloudinary url}
{=(cloud.server):l_text:{join(_):{{checkIf.day}.fonts}}:{s.welcome},co_rgb:{checkColor1},g_{pos.{checkIf.day}.title(1)},x_{pos.{checkIf.day}.title(2)},y_{pos.{checkIf.day}.title(3)}}
{=(cloud.members):l_text:{join(_):{{checkIf.day}.fonts.mem}}:{s.members},co_rgb:{checkColor2},g_{pos.{checkIf.day}.members(1)},x_{pos.{checkIf.day}.members(2)},y_{pos.{checkIf.day}.members(3)}}
{=(cloud.welcome):l_text:{join(_):{{checkIf.day}.fonts.mem}}:{s.welcMsg},co_rgb:{checkColor2},g_{pos.{checkIf.day}.welcome(1)},x_{pos.{checkIf.day}.welcome(2)},y_{pos.{checkIf.day}.welcome(3)}}

{=(finalurl):{cloud.urlpre}/{{checkIf.day}.crop}/{cloud.server}/{cloud.members}/{cloud.welcome}/{{checkIf.day}.url}}

{=(COMMENT):------------- END OF CLOUDINARY -------------}

{=(COMMENT):Role stuff for adding verified role}
{silence} {=():} {override}
{=(mentionMsg):{mention}, you forgot to mention someone!}
{=(verifyMsg):{mention}, this user is already verified!}
{=(userVerify):{mention}, you're aleady verified!}

{=(COMMENT):Error checking}
{=(a1):{args(1)}}
{=(checkMention):{and({a1}==add|{target(id)}=={user(id)}):true|false}}
{=(checkVerifyTarget):{and({a1}==add|{contains({verifyRoleID}):{target(roleids)}}==true):true|false}}
{=(checkVerifyUser):{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==true):true|false}}

{=(COMMENT):for regular verify}
{break({checkVerifyUser}==true):{userVerify}}

{=(COMMENT):for subcommand, check for verify role}
{break({checkVerifyTarget}==true):{verifyMsg}}

{=(COMMENT):for subcommand, check for mention}
{break({checkMention}==true):{mentionMsg}}

{=(COMMENT):check for staff roles for use of subcommand}
{{if({a1}==add):require({mention}, you must be a staff member to use this subcommand!):{join(,):{modRoles}}}}

{{and({a1}==add|{target(id)}!={user(id)}|{contains({verifyRoleID}):{target(roleids)}}==false):c:role add {target(id)} {verifyRoleID}}}
{{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==false):c:role add {user(id)} {verifyRoleID}}}

{{and({a1}==add|{target(id)}!={user(id)}|{contains({verifyRoleID}):{target(roleids)}}==false):redirect:{generalChatID}}}
{{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==false):redirect:{generalChatID}}}
{and({a1}==add|{target(id)}!={user(id)}|{contains({verifyRoleID}):{target(roleids)}}==false):{finalurl}|{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==false):{finalurl}}}
Raw JSON
{
  "id": 677135,
  "created_at": "2021-03-15T08:12:47.000Z",
  "tag_name": "mahajan",
  "nsfw": false,
  "owner_id": "709387130723368968",
  "uses": 2,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "760721615889235969",
  "sharer": "709387130723368968",
  "content": "{=(COMMENT):Change the variables for command to your preferences below}\n{=(COMMENT):Offset the time from UTC to your timezone below. Ex:EST is -5}\n{=(offset):+5.5}\n\n{=(COMMENT):Add a time in **HH:MM** format in 24hr time, for when you want the morning and night to begin/end}\n{=(morning):07:30}\n{=(night):20:00}\n\n{=(COMMENT):Fill out the info below that is accurate to your server}\n{=(verifyRoleID):819173659821473822}\n\n{=(COMMENT):If you do not want the verify message to redirect to your general chat, leave {channel(id)} instead of the id}\n{=(generalChatID):{channel(id)}}\n\n{=(COMMENT):Separate the modroles by a single space}\n{=(modRoles):818532598036430929}\n\n\n{=(COMMENT): START OF COMMAND}\n{=(COMMENT):------- Shouldn't need to touch below unless you know what you're doing -------}\n\n{=(COMMENT):Getting todays time offsetted to preffered timezone}\n{=(hins):3600}\n{=(unix1):{strf:%s}}\n{=(today.unix):{m:trunc({unix1}+({hins}*{offset}))}}\n{=(today.time):{strf({today.unix}):%T}}\n{=(today.date):{strf({today.unix}):%F}}\n{=(tomorrow.date):{strf({m:trunc({today.unix}+({hins}*24))}):%F}}\n\n{=(COMMENT):Finding out the time of day}\n{=(today.hourmin):{strf({today.unix}):%H %M}}\n{=(morning.unix):{strf({today.date} {morning}:00):%s}}\n{=(evening.unix):{strf({if({night}==00:00):{tomorrow.date}|{today.date}} {night}:00):%s}}\n{=(noon.unix):{strf({today.date} 12:00:00):%s}}\n{=(checkIf.day):{and({today.unix}>={morning.unix}|{today.unix}<={evening.unix}):daytime|nighttime}}\n{=(check.tod):{any({today.unix}<{morning.unix}|{today.unix}>{evening.unix}):Good evening|{and({today.unix}>{morning.unix}|{today.unix}<{noon.unix}):Good morning|{and({today.unix}>{noon.unix}|{today.unix}<{evening.unix}):Good afternoon}}}}\n\n\n{=(COMMENT):------------- BEGINNING OF CLOUDINARY -------------}\n\n{=(COMMENT):Setting default variables}\n{=(cloud.urlpre):https://res.cloudinary.com/demo/image/fetch}\n{=(daytime.url):https://i.imgur.com/BbzGcvo.jpg}\n{=(nighttime.url):https://i.imgur.com/ayGviUn.jpg}\n{=(allParas):({args(1)}==add|{target(id)}!={user(id)})}\n\n{=(COMMENT):Getting the username}\n{=(username):{and{allParas}:{target(proper)}|{user(proper)}}}\n{=(user.disc):{username(1):#}}\n{=(s.user):{replace(%2C,%252C):{urlencode:{user.disc}}}}\n\n{=(COMMENT):Getting the welcome title set up}\n{=(welcome):{check.tod}, {user.disc}!}\n{=(s.welcome):{replace(%2C,%252C):{urlencode:{welcome}}}}\n{=(welcMsg):Welcome to {server}!}\n{=(s.welcMsg):{replace(%2C,%252C):{urlencode:{welcMsg}}}}\n\n{=(COMMENT):Getting the number of members}\n{=(members):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{server(members)}}}}}}}\n{=(image.members):You are member number {members}!}\n{=(s.members):{replace(%2C,%252C):{urlencode:{image.members}}}}\n\n{=(COMMENT):Setting variables for daytime image}\n{=(violet):8085bb}\n{=(white):ffffff}\n{=(daytime.fonts):orbitron 35 bold}\n{=(daytime.fonts.mem):orbitron 17 bold}\n{=(pos.daytime.title):north_west 12 12}\n{=(pos.daytime.members):south_east 10 35}\n{=(pos.daytime.welcome):south_east 10 8}\n{=(daytime.crop):w_946,h_286,c_scale/w_0.9,h_0.8,c_crop}\n\n{=(COMMENT):Setting variables for nighttime image}\n{=(lightyellow):fddfa3}\n{=(darkyellow):e6910c}\n{=(nighttime.fonts):orbitron 35 bold}\n{=(nighttime.fonts.mem):orbitron 15 bold}\n{=(pos.nighttime.title):north_west 12 12}\n{=(pos.nighttime.members):south_west 10 13}\n{=(pos.nighttime.welcome):south_west 10 35}\n{=(nighttime.crop):w_946,h_286,c_scale/w_0.9,h_0.8,c_crop,g_north}\n\n{=(checkColor1):{if({checkIf.day}==daytime):{white}|{if({checkIf.day}==nighttime):{lightyellow}}}}\n{=(checkColor2):{if({checkIf.day}==daytime):{violet}|{if({checkIf.day}==nighttime):{darkyellow}}}}\n\n{=(COMMENT):Formatting for Cloudinary url}\n{=(cloud.server):l_text:{join(_):{{checkIf.day}.fonts}}:{s.welcome},co_rgb:{checkColor1},g_{pos.{checkIf.day}.title(1)},x_{pos.{checkIf.day}.title(2)},y_{pos.{checkIf.day}.title(3)}}\n{=(cloud.members):l_text:{join(_):{{checkIf.day}.fonts.mem}}:{s.members},co_rgb:{checkColor2},g_{pos.{checkIf.day}.members(1)},x_{pos.{checkIf.day}.members(2)},y_{pos.{checkIf.day}.members(3)}}\n{=(cloud.welcome):l_text:{join(_):{{checkIf.day}.fonts.mem}}:{s.welcMsg},co_rgb:{checkColor2},g_{pos.{checkIf.day}.welcome(1)},x_{pos.{checkIf.day}.welcome(2)},y_{pos.{checkIf.day}.welcome(3)}}\n\n{=(finalurl):{cloud.urlpre}/{{checkIf.day}.crop}/{cloud.server}/{cloud.members}/{cloud.welcome}/{{checkIf.day}.url}}\n\n{=(COMMENT):------------- END OF CLOUDINARY -------------}\n\n{=(COMMENT):Role stuff for adding verified role}\n{silence} {=():} {override}\n{=(mentionMsg):{mention}, you forgot to mention someone!}\n{=(verifyMsg):{mention}, this user is already verified!}\n{=(userVerify):{mention}, you're aleady verified!}\n\n{=(COMMENT):Error checking}\n{=(a1):{args(1)}}\n{=(checkMention):{and({a1}==add|{target(id)}=={user(id)}):true|false}}\n{=(checkVerifyTarget):{and({a1}==add|{contains({verifyRoleID}):{target(roleids)}}==true):true|false}}\n{=(checkVerifyUser):{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==true):true|false}}\n\n{=(COMMENT):for regular verify}\n{break({checkVerifyUser}==true):{userVerify}}\n\n{=(COMMENT):for subcommand, check for verify role}\n{break({checkVerifyTarget}==true):{verifyMsg}}\n\n{=(COMMENT):for subcommand, check for mention}\n{break({checkMention}==true):{mentionMsg}}\n\n{=(COMMENT):check for staff roles for use of subcommand}\n{{if({a1}==add):require({mention}, you must be a staff member to use this subcommand!):{join(,):{modRoles}}}}\n\n{{and({a1}==add|{target(id)}!={user(id)}|{contains({verifyRoleID}):{target(roleids)}}==false):c:role add {target(id)} {verifyRoleID}}}\n{{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==false):c:role add {user(id)} {verifyRoleID}}}\n\n{{and({a1}==add|{target(id)}!={user(id)}|{contains({verifyRoleID}):{target(roleids)}}==false):redirect:{generalChatID}}}\n{{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==false):redirect:{generalChatID}}}\n{and({a1}==add|{target(id)}!={user(id)}|{contains({verifyRoleID}):{target(roleids)}}==false):{finalurl}|{and(=={a1}|{contains({verifyRoleID}):{user(roleids)}}==false):{finalurl}}}",
  "embed": "{}",
  "last_fetched": "2026-10-21T00:41:48.155Z"
}