My Snippets
Mini Game
Progress
Completed
Code 1/2
?wpm
Click anywhere to copy
$nomention
$color[ff8888]
$title[Typing Test]
$description[Anyone can click the button below and start typing]
$addButton[yes;typetestbegin;Click to Start Typing;secondary;no;]
Code 2/2
$onInteraction
Click anywhere to copy
$enableDecimals[yes]
$nomention
$onlyIf[$checkContains[$customID;typetest]==true;]
$if[$customID==typetestbegin]
$var[noun;$randomText[bird;clock;boy;plastic;duck;teacher;old lady;professor;hamster;dog]]
$var[verb;$randomText[kicked;ran;flew;dodged;sliced;rolled;died;breathed;slept;killed]]
$var[adj;$randomText[beautiful;lazy;professional;lovely;dumb;rough;soft;hot;vibrating;slimy]]
$var[adv;$randomText[slowly;elegantly;precisely;quickly;sadly;humbly;proudly;shockingly;calmly;passionately]]
$var[noun2;$randomText[clock;bird;boy;plastic;duck;teacher;old lady;professor;hamster;dog]]
$var[verb2;$randomText[ran;kicked;flew;dodged;sliced;rolled;died;breathed;slept;killed]]
$var[adj2;$randomText[lazy;beautiful;professional;lovely;dumb;rough;soft;hot;vibrating;slimy]]
$var[adv2;$randomText[elegantly;slowly;precisely;quickly;sadly;humbly;proudly;shockingly;calmly;passionately]]
$var[noun3;$randomText[clock;boy;bird;plastic;duck;teacher;old lady;professor;hamster;dog]]
$var[adj3;$randomText[lazy;professional;beautiful;lovely;dumb;rough;soft;hot;vibrating;slimy]]
$var[prep;$randomText[down;into;up;on;upon;below;above;through;across;towards]]
$var[sentence;The $var[adj] $var[noun] $var[adv] $var[verb] because some $var[noun2] $var[adv2] $var[verb2] $var[prep] which, became a $var[adj2], $var[adj3] $var[noun3].]
$var[sentence;$replaceText[$replaceText[$var[sentence];a;𝖺;-1];e;𝖾;-1]]
$var[msgID;$sendEmbedMessage[$channelID;;⌨️ • $username is typing...;;$replaceText[$replaceText[$var[sentence];a;𝖺;-1];e;𝖾;-1];ffffff;;;;;;;no;yes]]
$newModal[$var[msgID]typetestreply$charCount[$var[sentence]];Typing Speed Test]
$addTextInput[main;paragraph;Main Text;;;yes;$var[sentence];Did you just delete the main text 💀]
$addTextInput[reply;paragraph;Re-Type The above Text here;;;yes;;Time has started...]
$elseif[$checkContains[$customID;typetestreply]==true]
$var[quote;$replaceText[$replaceText[$input[main];𝖺;a;-1];𝖾;e;-1]]
$textSplit[$customID;typetestreply]
$if[$splitText[2]==$charCount[$input[main]]]
$if[$checkContains[$input[reply];𝖾;𝖺]==true]
‼️ **NEW RECORD!!!** Damn bruhh that was awesome. You broke the world recor..nahhh jk you suck <:OPN_CaptainWheezeopp:770121689723830282> Copy pasted. Yaikes.
$elseif[$input[reply]==$var[quote]]
$httpGet[https://showcase.api.linx.twenty57.net/UnixTime/tounixtimestamp?datetime=$replaceText[$userJoinedDiscord[$splitText[1];2006/01/02u15:04:05];u;%20;1]]
$var[time;$sub[$getTimestamp;$httpResult[UnixTimeStamp]]]
$var[args;$calculate[$charCount[$input[reply]]-$charCount[$replaceText[$input[reply]; ;;-1]]+1]]
$var[wpm;$calculate[$charCount[$input[reply]].0/$var[time].0*12.0]]
$var[wpm2;$calculate[$var[args].0/$var[time].0*60.0]]
<@$authorID>
$title[⌨️ • Type Test]
$description[**$username**
```xml
< Phrase : $var[quote]>```🟩 **Success!!**
>>> **Keystrokes : $charCount[$input[reply]]<:blankspace:849895262893768714>Words : $var[args]<:blankspace:849895262893768714>Time : $var[time] sec<:blankspace:849895262893768714>Accuracy : 100%**
Score :** [$round[$var[wpm];2]\](https://www.google.com) w/m** ]
$color[ff8888]
$else
$textSplit[$customID;typetestreply]
$httpGet[https://showcase.api.linx.twenty57.net/UnixTime/tounixtimestamp?datetime=$replaceText[$userJoinedDiscord[$splitText[1];2006/01/02u15:04:05];u;%20;1]]
$var[time;$sub[$getTimestamp;$httpResult[UnixTimeStamp]]]
$var[args;$calculate[$charCount[$input[reply]]-$charCount[$replaceText[$input[reply]; ;;-1]]+1]]
$var[wpm2;$calculate[$var[args].0/$var[time].0*60.0]]
$var[wpm;$calculate[$charCount[$input[reply]].0/$var[time].0*12.0]]
<@$authorID>, $replaceText[$replaceText[$replaceText[$checkCondition[$charCount[$input[reply]]<=$charCount[$var[quote]]].$checkCondition[$charCount[$input[reply]]>=$charCount[$var[quote]]];true.true;‼️ You mistyped something!;1];false.true;‼️ You typed extra characters!;1];true.false;‼️ You missed some characters or punctuation!;1]
$title[⌨️ • Type Test]
$description[**$username**
```xml
$var[quote]
< You : $input[reply]>```🟥 **Failed**
>>> **Keystrokes : $charCount[$input[reply]]<:blankspace:849895262893768714>Words : $var[args]<:blankspace:849895262893768714>Time : $var[time] sec<:blankspace:849895262893768714>Accuracy : Failed**
Score :** [$round[$var[wpm];2]\](https://www.google.com) w/m [(Failed)\](https://www.google.com)** ]
$color[ff0000]
$endif
$else
‼️ Waittt! Sometihing isn't right! Did you change the main text?
$endif
$endif