LessonUp Bot

A bot script for LessonUp

  1. // ==UserScript==
  2. // @name LessonUp Bot
  3. // @namespace http://your-namespace-here
  4. // @version 0.1
  5. // @description A bot script for LessonUp
  6. // @author Your Name
  7. // @match *://*/*
  8. // @license MIT
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. let Running = true;
  16.  
  17. function sleep(ms) {
  18. return new Promise(resolve => setTimeout(resolve, ms));
  19. }
  20.  
  21. async function Intro() {
  22. console.log("Welcome to LessonUp Bot!!!");
  23. await sleep(1500);
  24. console.log("This bot is able to perform");
  25. await sleep(1500);
  26. console.log("A lot of actions really fast");
  27. await sleep(1500);
  28. console.log("It is able to answer randomly.");
  29. await sleep(1500);
  30. console.log("And give custom answers");
  31. await sleep(2500);
  32. console.log("Start-Up Complete");
  33. await sleep(1000);
  34. console.log("This is a list of all the commands.");
  35. await sleep(1000);
  36. console.log("Type the number of your command.");
  37. await sleep(1000);
  38. console.log("And you will go to the menu of your command!");
  39. console.log("");
  40. }
  41.  
  42. function CommandList() {
  43. console.log("1. Flooder (Fills the Lesson-Up with bots that give random answers.)");
  44. console.log("");
  45. console.log("To stop type stop.");
  46. }
  47.  
  48. async function MainMenu() {
  49. CommandList();
  50. const UserInput = prompt("Enter the number of your command:");
  51. if (UserInput && UserInput.toLowerCase() === "stop") {
  52. Running = false;
  53. } else if (UserInput) {
  54. const UserInputNum = parseInt(UserInput);
  55. // Add logic for handling user input
  56. }
  57. }
  58.  
  59. (async function() {
  60. await Intro();
  61. await sleep(3000);
  62. while (Running) {
  63. await MainMenu();
  64. }
  65. })();
  66. })();