rajat_cj

BDFD • Typing Game

Jun 8th, 2022 (edited)
1,148
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. TYPING GAME for BDFD
  2. - Game by Rajat#1004
  3.  
  4.  
  5.  
  6.  
  7.  
  8. Code 1
  9. --------------------------------------------------------------------------------
  10. Trigger : ?wpm
  11. Language : BDScript 2
  12. Code :
  13.  
  14.  
  15. $nomention
  16. $color[ff8888]
  17. $title[Typing Test]
  18. $description[Anyone can click the button below and start typing]
  19. $addButton[yes;typetestbegin;Click to Start Typing;secondary;no;]
  20.  
  21.  
  22.  
  23.  
  24. Code 2
  25. --------------------------------------------------------------------------------
  26. Trigger : $onInteraction
  27. Language : BDScript 2
  28. Code :
  29.  
  30.  
  31. $enableDecimals[yes]
  32. $nomention
  33. $onlyIf[$checkContains[$customID;typetest]==true;]
  34. $if[$customID==typetestbegin]
  35. $var[noun;$randomText[bird;clock;boy;plastic;duck;teacher;old lady;professor;hamster;dog]]
  36. $var[verb;$randomText[kicked;ran;flew;dodged;sliced;rolled;died;breathed;slept;killed]]
  37. $var[adj;$randomText[beautiful;lazy;professional;lovely;dumb;rough;soft;hot;vibrating;slimy]]
  38. $var[adv;$randomText[slowly;elegantly;precisely;quickly;sadly;humbly;proudly;shockingly;calmly;passionately]]
  39. $var[noun2;$randomText[clock;bird;boy;plastic;duck;teacher;old lady;professor;hamster;dog]]
  40. $var[verb2;$randomText[ran;kicked;flew;dodged;sliced;rolled;died;breathed;slept;killed]]
  41. $var[adj2;$randomText[lazy;beautiful;professional;lovely;dumb;rough;soft;hot;vibrating;slimy]]
  42. $var[adv2;$randomText[elegantly;slowly;precisely;quickly;sadly;humbly;proudly;shockingly;calmly;passionately]]
  43. $var[noun3;$randomText[clock;boy;bird;plastic;duck;teacher;old lady;professor;hamster;dog]]
  44. $var[adj3;$randomText[lazy;professional;beautiful;lovely;dumb;rough;soft;hot;vibrating;slimy]]
  45. $var[prep;$randomText[down;into;up;on;upon;below;above;through;across;towards]]
  46. $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].]
  47. $var[sentence;$replaceText[$replaceText[$var[sentence];a;𝖺;-1];e;𝖾;-1]]
  48. $var[msgID;$sendEmbedMessage[$channelID;;⌨️ • $username is typing...;;$replaceText[$replaceText[$var[sentence];a;𝖺;-1];e;𝖾;-1];ffffff;;;;;;;no;yes]]
  49. $newModal[$var[msgID]typetestreply$charCount[$var[sentence]];Typing Speed Test]
  50. $addTextInput[main;paragraph;Main Text;;;yes;$var[sentence];Did you just delete the main text 💀]
  51. $addTextInput[reply;paragraph;Re-Type The above Text here;;;yes;;Time has started...]
  52.  
  53. $elseif[$checkContains[$customID;typetestreply]==true]
  54. $var[quote;$replaceText[$replaceText[$input[main];𝖺;a;-1];𝖾;e;-1]]
  55. $textSplit[$customID;typetestreply]
  56. $if[$splitText[2]==$charCount[$input[main]]]
  57. $if[$checkContains[$input[reply];𝖾;𝖺]==true]
  58. ‼️ **NEW RECORD!!!** Damn bruhh that was awesome. You broke the world recor..nahhh jk you suck <:OPN_CaptainWheezeopp:770121689723830282> Copy pasted. Yaikes.
  59. $elseif[$input[reply]==$var[quote]]
  60. $httpGet[https://showcase.api.linx.twenty57.net/UnixTime/tounixtimestamp?datetime=$replaceText[$userJoinedDiscord[$splitText[1];2006/01/02u15:04:05];u;%20;1]]
  61. $var[time;$sub[$getTimestamp;$httpResult[UnixTimeStamp]]]
  62. $var[args;$calculate[$charCount[$input[reply]]-$charCount[$replaceText[$input[reply]; ;;-1]]+1]]
  63. $var[wpm;$calculate[$charCount[$input[reply]].0/$var[time].0*12.0]]
  64. $var[wpm2;$calculate[$var[args].0/$var[time].0*60.0]]
  65.  
  66. <@$authorID>
  67. $title[⌨️ • Type Test]
  68. $description[**$username**
  69. ```xml
  70. <Phrase : $var[quote]>```🟩 **Success!!**
  71. >>> **Keystrokes : $charCount[$input[reply]]<:blankspace:849895262893768714>Words : $var[args]<:blankspace:849895262893768714>Time : $var[time] sec<:blankspace:849895262893768714>Accuracy : 100%**
  72. Score :** [$round[$var[wpm];2]\](https://www.google.com) w/m** ]
  73. $color[ff8888]
  74.  
  75. $else
  76. $textSplit[$customID;typetestreply]
  77. $httpGet[https://showcase.api.linx.twenty57.net/UnixTime/tounixtimestamp?datetime=$replaceText[$userJoinedDiscord[$splitText[1];2006/01/02u15:04:05];u;%20;1]]
  78. $var[time;$sub[$getTimestamp;$httpResult[UnixTimeStamp]]]
  79. $var[args;$calculate[$charCount[$input[reply]]-$charCount[$replaceText[$input[reply]; ;;-1]]+1]]
  80. $var[wpm2;$calculate[$var[args].0/$var[time].0*60.0]]
  81. $var[wpm;$calculate[$charCount[$input[reply]].0/$var[time].0*12.0]]
  82.  
  83. <@$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]
  84. $title[⌨️ • Type Test]
  85. $description[**$username**
  86. ```xml
  87. $var[quote]
  88. <You : $input[reply]>```🟥 **Failed**
  89. >>> **Keystrokes : $charCount[$input[reply]]<:blankspace:849895262893768714>Words : $var[args]<:blankspace:849895262893768714>Time : $var[time] sec<:blankspace:849895262893768714>Accuracy : Failed**
  90. Score :** [$round[$var[wpm];2]\](https://www.google.com) w/m [(Failed)\](https://www.google.com)** ]
  91. $color[ff0000]
  92. $endif
  93. $else
  94. ‼️ Waittt! Sometihing isn't right! Did you change the main text?
  95. $endif
  96. $endif
  97.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment