dice

Privateunrated

Content

30 lines
{=(Comment):Change the prefix below!}
{=(prefix):!}

{=(l1):{lower:{1}}}

{=(helpmsg):{if({l1}==help):Roll a dice with `{prefix}dice <dice type>`!

There are currently two types of dice:
```• Standard [used as stand] (1-6, Cube)
• D20 [used as d20] (1-20, Icosahedron, Standard DnD dice)```}}

{=(dicenum):{if({l1}==stand):{range:1-6}|{if({l1}==d20):{range:1-20}}}}

{=(roll):{or({l1}==stand|{l1}==d20):You rolled a(n) {dicenum}}}

{=(dicepic):{if({l1}==stand):{list({math:trunc({dicenum}-1)}):DyZs2nK,Vw9FPJT,6RndoZO,O5PlFoP,La7Em1h,tX8Ok56}|{if({l1}==d20):{list({math:trunc({dicenum}-1)}):MQEmxTm,OMUiM7r,H6vZ1fZ,wOKAa5O,BXrmfyE,b6fDTIc,l9ELuVy,hz5LZZj,M61gCvF,prjjadV,e2YWQla,lSOSJ3T,PL4u09H,OGxrWwR,ZMZR3eS,olhC3rp,wtq9bUq,GOSOKW9,198l5FT,XzQfJGj}}}}

{=(url):{or({l1}==stand|{l1}==d20):https://i.imgur.com/{dicepic}.png}}

{=(noembed):{and({l1}!=|{args}!=d20|{args}!=stand|{l1}!=help):text}}

{=(titleimg):{or({l1}==stand|{l1}==d20):https://i.imgur.com/RABFA3A.png}}

{=(title):{or({l1}==stand|{l1}==d20):Dice Roller}}

{=(noembed2):{if({l1}==):text}}

{=(numfact):{if({l1}!=help):**Number Fact:**

{list({math:trunc({dicenum}-1)}):{rand:1 is the smallest positive integer.~It is sometimes considered the first of the infinite sequence of natural numbers.~Any number multiplied by 1 returns that number.~One is the first non-zero natural number.~1is its own factorial.~1 is its own square and square root.~1 is its own cube and cube root.},{rand:Two is the smallest and only even prime number.~Two is the first number in the only set of consecutive prime numbers with the other being 3.~2 is the first Sophie Germain prime.~2 is the first factorial prime.~2 is the first Lucas prime.~2 is the first Ramanujan prime.},{rand:3 is the smallest odd prime number.~3 is the only prime triangular number.~3 is the first Fermat prime.~3 is the first Mersenne prime.~Three is the number of dimensions that humans can perceive.~Three is the atomic number of lithium.~3 is a lucky number of the creator of this tag!},{rand:4 is the smallest composite number.~4 is considered unlucky in many East Asian cultures.~The four seasons are based on 4.~The duodecimal system is based on 4.~The vigesimal system is based on 4.~A four-sided plane figure is a quadrilateral (quadrangle).},{rand:5 is the only prime that is the sum of two consecutive primes (namely 2 and 3).~5 is the only Fibonacci number that is equal to its position.~Five is the only prime number to end in the digit 5.~5 has attained significance throughout history in part because typical humans have five digits on each hand.~Humans have 5 basic senses.},{rand:6 is a lucky number of the creator of this tag!~6 is the smallest perfect number.~6 is the smallest positive integer which is neither a square number nor a prime number.~6 is the smallest Granville number.~6 is the smallest S-perfect number.~6 is the only number that is both the sum and the product of three consecutive positive numbers.},{rand:Seven has a 6 in 62 (or 1/6) probability of being rolled (1–6; 6–1; 2–5; 5–2; 3–4; or 4–3). This is the greatest of any number.~7 is an unlucky number of the creator of this tag.~7 is not very interesting <:wonk:694360893747757107>},{rand:8 is the first number which is neither prime nor semiprime.~8 is one of the only two positive Fibonacci numbers that is a perfect cube.~8 is not very interesting <:wonk:694360893747757107>},{rand:9 is the first composite odd number.~9 is the only single-digit composite odd number.~9 is the highest single-digit number in the decimal system.~Six recurring nines appear in the decimal places 762 through 767 of π.~If you divide a number by the amount of 9s corresponding to its number of digits the number is turned into a repeating decimal (e.g. 274/999 = 0.274274274274...).},{rand:10 is the base of the decimal numeral system.~Ten is the sum of the first three prime numbers.~10 is the sum of the four first positive integers (1 + 2 + 3 + 4).~10 is the sum of the square of the two first odd numbers and also of the first four factorials.~The reason for the choice of ten (for the base of the decimal system) is assumed to be that humans have ten fingers.},{rand:11 is the first repdigit; a number whose digits are the same number.~Eleven is the smallest positive integer requiring three syllables.~11 is the smallest two-digit prime number.~Reversing the digits of a multiple of 11 will result in another multiple of 11.},{rand:12 is approximately the number of full lunations of the moon in a year.~Twelve is the largest number with a single-syllable name in English.~12 is the smallest number with exactly six divisors.~12 is the smallest abundant number.~Jupiter's year takes 12 Earth years.},{rand:13 is the smallest 'emirp'; a prime that becomes another prime when reversed.~13 is not very interesting <:wonk:694360893747757107>},{rand:14 is the number of minutes it took to come up with a number fact for 14.~14 is not very interesting <:wonk:694360893747757107>},{rand:15 contains the decimal digits 1 and 5. Adding the integers from 1 through 5 together elicits 15 (1 + 2 + 3 + 4 + 5 = 15).~15 is not very interesting <:wonk:694360893747757107>~15 is the smallest number that can be factorized using Shor's quantum algorithm.},{rand:16 is the smallest number with exactly five divisors.~16 is the base of the hexadecimal number system.~16 is an unlucky number of the creator of this tag.},{rand:17 is the sum of the first four prime numbers.~17 is the only prime number which is the sum of four consecutive primes.~17 is the minimum possible number of 'givens' for a sudoku puzzle with a unique solution.},{rand:18 is the only number where the sum of its written digits (1+8 = 9) is equal to half of itself (18/9 = 2).~18 is a lucky number of the creator of this tag!~18 is not very interesting <:wonk:694360893747757107>},{rand:19 is a centered triangular number. ~19 is the smallest centered triangular number that is also a prime.~19 is an unlucky number of the creator of this tag.~19 is not very interesting <:wonk:694360893747757107>},{rand:A group of 20 units may also be referred to as a score.~20 is the basis for vigesimal number systems.~20 is the smallest primitive abundant number.~20 is the highest possible number on a D20 dice (which is the reason for its name}}}}

Embed

1 line
{"color": 2451667, "image": {"url": "{noembed} {noembed2}"}, "title": "{roll}", "author": {"name": "{title}", "icon_url": "{titleimg}"}, "footer": {"text": "This tag has been used {uses} times!"}, "thumbnail": {"url": "{url}"}, "description": "{helpmsg} {numfact}\n"}
Raw JSON
{
  "id": 283791,
  "created_at": "2022-04-26T10:37:18.511Z",
  "tag_name": "dice",
  "nsfw": false,
  "owner_id": "439348367026552832",
  "uses": 4,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "607896409546424320",
  "sharer": "439348367026552832",
  "content": "{=(Comment):Change the prefix below!}\n{=(prefix):!}\n\n{=(l1):{lower:{1}}}\n\n{=(helpmsg):{if({l1}==help):Roll a dice with `{prefix}dice <dice type>`!\n\nThere are currently two types of dice:\n```• Standard [used as stand] (1-6, Cube)\n• D20 [used as d20] (1-20, Icosahedron, Standard DnD dice)```}}\n\n{=(dicenum):{if({l1}==stand):{range:1-6}|{if({l1}==d20):{range:1-20}}}}\n\n{=(roll):{or({l1}==stand|{l1}==d20):You rolled a(n) {dicenum}}}\n\n{=(dicepic):{if({l1}==stand):{list({math:trunc({dicenum}-1)}):DyZs2nK,Vw9FPJT,6RndoZO,O5PlFoP,La7Em1h,tX8Ok56}|{if({l1}==d20):{list({math:trunc({dicenum}-1)}):MQEmxTm,OMUiM7r,H6vZ1fZ,wOKAa5O,BXrmfyE,b6fDTIc,l9ELuVy,hz5LZZj,M61gCvF,prjjadV,e2YWQla,lSOSJ3T,PL4u09H,OGxrWwR,ZMZR3eS,olhC3rp,wtq9bUq,GOSOKW9,198l5FT,XzQfJGj}}}}\n\n{=(url):{or({l1}==stand|{l1}==d20):https://i.imgur.com/{dicepic}.png}}\n\n{=(noembed):{and({l1}!=|{args}!=d20|{args}!=stand|{l1}!=help):text}}\n\n{=(titleimg):{or({l1}==stand|{l1}==d20):https://i.imgur.com/RABFA3A.png}}\n\n{=(title):{or({l1}==stand|{l1}==d20):Dice Roller}}\n\n{=(noembed2):{if({l1}==):text}}\n\n{=(numfact):{if({l1}!=help):**Number Fact:**\n\n{list({math:trunc({dicenum}-1)}):{rand:1 is the smallest positive integer.~It is sometimes considered the first of the infinite sequence of natural numbers.~Any number multiplied by 1 returns that number.~One is the first non-zero natural number.~1is its own factorial.~1 is its own square and square root.~1 is its own cube and cube root.},{rand:Two is the smallest and only even prime number.~Two is the first number in the only set of consecutive prime numbers with the other being 3.~2 is the first Sophie Germain prime.~2 is the first factorial prime.~2 is the first Lucas prime.~2 is the first Ramanujan prime.},{rand:3 is the smallest odd prime number.~3 is the only prime triangular number.~3 is the first Fermat prime.~3 is the first Mersenne prime.~Three is the number of dimensions that humans can perceive.~Three is the atomic number of lithium.~3 is a lucky number of the creator of this tag!},{rand:4 is the smallest composite number.~4 is considered unlucky in many East Asian cultures.~The four seasons are based on 4.~The duodecimal system is based on 4.~The vigesimal system is based on 4.~A four-sided plane figure is a quadrilateral (quadrangle).},{rand:5 is the only prime that is the sum of two consecutive primes (namely 2 and 3).~5 is the only Fibonacci number that is equal to its position.~Five is the only prime number to end in the digit 5.~5 has attained significance throughout history in part because typical humans have five digits on each hand.~Humans have 5 basic senses.},{rand:6 is a lucky number of the creator of this tag!~6 is the smallest perfect number.~6 is the smallest positive integer which is neither a square number nor a prime number.~6 is the smallest Granville number.~6 is the smallest S-perfect number.~6 is the only number that is both the sum and the product of three consecutive positive numbers.},{rand:Seven has a 6 in 62 (or 1/6) probability of being rolled (1–6; 6–1; 2–5; 5–2; 3–4; or 4–3). This is the greatest of any number.~7 is an unlucky number of the creator of this tag.~7 is not very interesting <:wonk:694360893747757107>},{rand:8 is the first number which is neither prime nor semiprime.~8 is one of the only two positive Fibonacci numbers that is a perfect cube.~8 is not very interesting <:wonk:694360893747757107>},{rand:9 is the first composite odd number.~9 is the only single-digit composite odd number.~9 is the highest single-digit number in the decimal system.~Six recurring nines appear in the decimal places 762 through 767 of π.~If you divide a number by the amount of 9s corresponding to its number of digits the number is turned into a repeating decimal (e.g. 274/999 = 0.274274274274...).},{rand:10 is the base of the decimal numeral system.~Ten is the sum of the first three prime numbers.~10 is the sum of the four first positive integers (1 + 2 + 3 + 4).~10 is the sum of the square of the two first odd numbers and also of the first four factorials.~The reason for the choice of ten (for the base of the decimal system) is assumed to be that humans have ten fingers.},{rand:11 is the first repdigit; a number whose digits are the same number.~Eleven is the smallest positive integer requiring three syllables.~11 is the smallest two-digit prime number.~Reversing the digits of a multiple of 11 will result in another multiple of 11.},{rand:12 is approximately the number of full lunations of the moon in a year.~Twelve is the largest number with a single-syllable name in English.~12 is the smallest number with exactly six divisors.~12 is the smallest abundant number.~Jupiter's year takes 12 Earth years.},{rand:13 is the smallest 'emirp'; a prime that becomes another prime when reversed.~13 is not very interesting <:wonk:694360893747757107>},{rand:14 is the number of minutes it took to come up with a number fact for 14.~14 is not very interesting <:wonk:694360893747757107>},{rand:15 contains the decimal digits 1 and 5. Adding the integers from 1 through 5 together elicits 15 (1 + 2 + 3 + 4 + 5 = 15).~15 is not very interesting <:wonk:694360893747757107>~15 is the smallest number that can be factorized using Shor's quantum algorithm.},{rand:16 is the smallest number with exactly five divisors.~16 is the base of the hexadecimal number system.~16 is an unlucky number of the creator of this tag.},{rand:17 is the sum of the first four prime numbers.~17 is the only prime number which is the sum of four consecutive primes.~17 is the minimum possible number of 'givens' for a sudoku puzzle with a unique solution.},{rand:18 is the only number where the sum of its written digits (1+8 = 9) is equal to half of itself (18/9 = 2).~18 is a lucky number of the creator of this tag!~18 is not very interesting <:wonk:694360893747757107>},{rand:19 is a centered triangular number. ~19 is the smallest centered triangular number that is also a prime.~19 is an unlucky number of the creator of this tag.~19 is not very interesting <:wonk:694360893747757107>},{rand:A group of 20 units may also be referred to as a score.~20 is the basis for vigesimal number systems.~20 is the smallest primitive abundant number.~20 is the highest possible number on a D20 dice (which is the reason for its name}}}}",
  "embed": "{\"color\": 2451667, \"image\": {\"url\": \"{noembed} {noembed2}\"}, \"title\": \"{roll}\", \"author\": {\"name\": \"{title}\", \"icon_url\": \"{titleimg}\"}, \"footer\": {\"text\": \"This tag has been used {uses} times!\"}, \"thumbnail\": {\"url\": \"{url}\"}, \"description\": \"{helpmsg} {numfact}\\n\"}",
  "last_fetched": "2026-10-20T22:13:37.279Z"
}