Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Well, hello.
- This is my JavaScript code to help you create your own chatbot in https://drrr.com/ chat.
- I'm not very good at it, but at least I tried.
- _______________________________________________________
- Currently this bot can:
- - Send random messages to keep your room alive
- - Kick and ban users at your command
- - Send random music
- - Send random pictures
- - React when specific users join chat
- - React when specific users leave chat
- - Spin the bottle
- - Roll the dice
- - Scream in panic (why, @Beam???)
- _______________________________________________________
- To make it work, you may want to edit some things, like:
- - Tripcodes in moders array
- - Messages in bumpArray and jokeArray
- - Links in tyanUrlsArray and musicArray
- _______________________________________________________
- And then:
- - Copy the code into your browser console and run the script
- - I suggest you using Google Chrome browser, it will be more stable that way
- _______________________________________________________
- FAQ:
- - 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
- - No, I'm not gonna edit anything here. Ever heard of "As is" term? Well, this is it.
- - 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.
- - If you are russian and don't understand a damn thing here... Well, not my problem. Go learn.
- - If you speak english and my english is so bad that you don't understand a damn thing here... Well, I am sorry.
- _______________________________________________________
- This code was written by me, 'Admiral Lexington#Miles/0442'
- Inspired by:
- - Comrade 'Dante#DanteBufXI'
- - And code from here: https://github.com/DrrrUtil/Drrr.comUtil
- Also, credits to:
- - Captain 'Beam#hELLTBEAMQ'
- - Madame 'Dracarys#C3KSEd.XsU'
- - 'Momo#MOMOY0CUko'
- - Cloud '☁'
- - KIWI
- ________________________________________________________
- Glory To Mankind!
- ________________________________________________________
- */
- //Bump function to send random phrases from bumpArray
- //and clear console errors in order to prevent bot death
- //executes every 10(ten) minutes
- //commented commands can cause bugs, resulting in bot death
- //array of tripcodes. Owners of this tripcodes will have rights to kick and ban users
- //first tripcode - moders[0] - will have rights to kick and ban other moderators
- //function to kick and ban users
- //can be used only by moderators
- //can't kick those whose tripcodes are considered moderators
- //PROBABLY can accept 'unban=' command but idk, didn't test it
- //function to kick and ban everyone including moderators
- //can be used only by first tripcode in array
- //can't kick main moderator
- //function to parse time of room existance
- //function to send randomly chosen link from tyanUrlsArray
- //function to send random element of jokeArray
- //function to send random link
- //array and function to parse this array to txt file and then download it
- //currently unused
- //variables and function to play 'Spin the Bottle'
- //function to send a private message to user with specific tripcode
- //probably will update this user lifetime, but idk
- //currently unused
- //variable to remember last message
- //used to NOT to respond to the same message twice
- //well, this is main logic block
- //it sends xmlhttp requests every second
- //and reacts to the last message from response
- //EVERYTHING BELOW ARE JUST ARRAYS, NO USEFUL CODE THERE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement