Advertisement
Admiral_Lexington

Vice-Admiral comments (legacy)

Mar 9th, 2022
725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3. Well, hello.
  4. This is my JavaScript code to help you create your own chatbot in https://drrr.com/ chat.
  5. I'm not very good at it, but at least I tried.
  6. _______________________________________________________
  7.  
  8. Currently this bot can:
  9. - Send random messages to keep your room alive
  10. - Kick and ban users at your command
  11. - Send random music
  12. - Send random pictures
  13. - React when specific users join chat
  14. - React when specific users leave chat
  15. - Spin the bottle
  16. - Roll the dice
  17. - Scream in panic (why, @Beam???)
  18. _______________________________________________________
  19.  
  20. To make it work, you may want to edit some things, like:
  21. - Tripcodes in moders array
  22. - Messages in bumpArray and jokeArray
  23. - Links in tyanUrlsArray and musicArray
  24. _______________________________________________________
  25.  
  26. And then:
  27. - Copy the code into your browser console and run the script
  28. - I suggest you using Google Chrome browser, it will be more stable that way
  29. _______________________________________________________
  30.  
  31. FAQ:
  32. - Yes, your PC/Laptop AND your browser with script in it must be turned on ALL THE TIME if you want your bot and room to be alive
  33. - No, I'm not gonna edit anything here. Ever heard of "As is" term? Well, this is it.
  34. - If you've never seen a program code, and you don't understand a damn thing here, even considering my comments... Well, not my problem. Go learn.
  35. - If you are russian and don't understand a damn thing here... Well, not my problem. Go learn.
  36. - If you speak english and my english is so bad that you don't understand a damn thing here... Well, I am sorry.
  37. _______________________________________________________
  38.  
  39. This code was written by me, 'Admiral Lexington#Miles/0442'
  40.  
  41. Inspired by:
  42. - Comrade 'Dante#DanteBufXI'
  43. - And code from here: https://github.com/DrrrUtil/Drrr.comUtil
  44.  
  45. Also, credits to:
  46. - Captain 'Beam#hELLTBEAMQ'
  47. - Madame 'Dracarys#C3KSEd.XsU'
  48. - 'Momo#MOMOY0CUko'
  49. - Cloud '☁'
  50. - KIWI
  51. ________________________________________________________
  52.  
  53. Glory To Mankind!
  54. ________________________________________________________
  55.  
  56. */
  57.  
  58.  
  59. //Bump function to send random phrases from bumpArray
  60. //and clear console errors in order to prevent bot death
  61. //executes every 10(ten) minutes
  62. //commented commands can cause bugs, resulting in bot death
  63.  
  64. //array of tripcodes. Owners of this tripcodes will have rights to kick and ban users
  65. //first tripcode - moders[0] - will have rights to kick and ban other moderators
  66.  
  67. //function to kick and ban users
  68. //can be used only by moderators
  69. //can't kick those whose tripcodes are considered moderators
  70. //PROBABLY can accept 'unban=' command but idk, didn't test it
  71.  
  72. //function to kick and ban everyone including moderators
  73. //can be used only by first tripcode in array
  74. //can't kick main moderator
  75.  
  76. //function to parse time of room existance
  77.  
  78. //function to send randomly chosen link from tyanUrlsArray
  79.  
  80. //function to send random element of jokeArray
  81.  
  82. //function to send random link
  83.  
  84. //array and function to parse this array to txt file and then download it
  85. //currently unused
  86.  
  87. //variables and function to play 'Spin the Bottle'
  88.  
  89. //function to send a private message to user with specific tripcode
  90. //probably will update this user lifetime, but idk
  91. //currently unused
  92.  
  93. //variable to remember last message
  94. //used to NOT to respond to the same message twice
  95.  
  96. //well, this is main logic block
  97. //it sends xmlhttp requests every second
  98. //and reacts to the last message from response
  99.  
  100. //EVERYTHING BELOW ARE JUST ARRAYS, NO USEFUL CODE THERE
Advertisement
RAW Paste Data Copied
Advertisement