Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script> // JavaScript Document
- $(document).ready(function() {
- $('#livechat').addClass('show');
- $('#livechatopen').css({
- display: 'none'
- });
- $('#livechatclose').css({
- display: 'block'
- });
- $('#livechat').animate({
- bottom: '0px'
- }, 250);
- /**********************/
- /*** BOT USER NAMES ***/
- /**********************/
- botusernames = ["Donna K", "Leonard J", "Brandon"];
- botusernames2 = ["Luke", "Timmy", "Berry"];
- /**********************/
- /*** RESPONSE TIMES ***/
- /**********************/
- maximumresponsetime = 1;
- minimumresponsetime = 1;
- /***********************/
- /*** PRECONVERSATION ***/
- /***********************/
- setTimeout(botconvo, 1000);
- /*************************************/
- /*** PRECONVERSATION RESPOSNE TIME ***/
- /*************************************/
- pre_conv_startup_time = 2;
- pre_conv_responsetime = 5;
- /********************************/
- /*** PRECONVERSATION MESSAGES ***/
- /********************************/
- botmessages = ["Es funktioniert?", "Ja, ich habe es einfach getan und ich erhielt unbegrenztes Gold sofort", "Unglaublich, ich habe es sofort getan. Was ist die Prüfung für?", "Ich habe die Überprüfung, nahm mich ein paar Sekunden, es ist einfach", "Es ist wirklich frei?", "Ja Jaaa, es funktioniert wie Charme. Diese Generatoren sind nicht zu finden :D", "Tun wir um Gold und Juwelen sofort?", "sofort nach dem Starten des Tools!", "Perfekt, werde ich es auf Facebook :)", "Ja, ich habe das Gleiche!", "Ich bin frei, nun, wie kann ich es tun?", "wählen Sie einfach eines der Angebote zu bekommen, einfach zu kompletten Es dauerte 20 Sekunden lol ;)"];
- /************************/
- /*** RANDOM SHOUTOUTS ***/
- /************************/
- maxshouttime = 20;
- minshouttime = 15;
- numbergenerated = ["999,999 ", "700,000", "800,000", "900,000 ", "999,999", "1,000,000"];
- listofresources = ["Gold", "Gems"];
- /**************************/
- /**** LIVE CHAT OPACITY ***/
- /**************************/
- $('#livechat').hover(function() {
- $('#livechat').animate({
- opacity: 1
- }, 0)
- }, function() {
- $('#livechat').animate({
- opacity: 0.9
- }, 0)
- });
- /*****************/
- /*** RESPONSES ***/
- /*****************/
- welcomemessage = ["Willkommen im Chat... :)", "Willkommen im Chat... :D", "Here, new one! :p"];
- greetingsresponse = ["Hello", "hello :D", "Hello :)", "hello.. :)", "Hello.. :D", "Greetings", "greetings.. :D", "greetings.. :)", "greetings :D", "Greetings :)"];
- whatsupresponse = ["whats up", "whats up XD", "whats up :P", "whats up ?"];
- howareyouresponse = ["how are you", "how are you :D", "how are you.. :)", "how are you.. :D", "how are you :)", "how are you.. XD", "everything is fine XD", "Yes, great", "yeah, great :)", "yeh, great :D", "Alright, great.. :)", "yeah, great.. :D", "Yeah, thanks", "Yeah, thanks :)", "Yeah, thanks :D", "Yeah, thanks.. :)", "Yeah, thanks.. :D"];
- absentresponse = ["Yeah :)", "Yeah :D", "Yeah", "We are here :)", "we are here :D", "we are here :)", "? ?", "we are online", "we are online :)", "we are online :D"];
- workingqresponse = ["Works for me :)", "works for me... :D", "works awesome", "it works awesome for me", "I just got what i wanted !", "It works perfectly", "It works, beyond awesomeness", "works like a charm", "i got what i wanted immediately"];
- reallyresponse = ["Yes", "Yes :)", "Yeah :D", "Yeah.. :)", "Yeah.. :D"];
- surveyresponse = ["Yes, it works all the time for me", "Nvm, it's really simple to complete", "Definetly worth it", "you get what you want, for free ! :D", "you get what you want right after verification, thanks :)"];
- complimentresponse = ["Nothing", "Nothing :)", "Nothing :D", "Nothing.. :)", "Nothing.. :D", "No problems :)", "No problem :D", "No problem.. :)", "No problem.. :D", "No problem"];
- byeresponse = ["goodbye", "see you guys :)", "going afk, see you guys :)", "enjoy it, cheers for now.. :)", "Bye guys.. :D"];
- /**********************************/
- /*** DO NOT EDIT ANYTHING BELOW ***/
- /**********************************/
- listofresourcesl = listofresources.length - 1;
- numbergeneratedl = numbergenerated.length - 1;
- welcomemessagel = welcomemessage.length - 1;
- botusernamesl = botusernames.length - 1;
- botusername = botusernames[Math.floor((Math.random() * botusernamesl))];
- greetings = ["bonjour à vous", "bonjour", "bonsoir", "bjr", "bjr à vous"];
- greetingsresponsel = greetingsresponse.length - 1;
- whatsup = ["quoi de neuf"];
- whatsupresponsel = whatsupresponse.length - 1;
- howareyou = ["vous allez bien", "comment allez-vous"];
- howareyouresponsel = howareyouresponse.length - 1;
- absent = ["Il y a quelqu'un", "vous allez bien", "Vous êtes là", "Vous etes la", "Vous êtes la"];
- absentresponsel = absentresponse.length - 1;
- workingq = ["Ca marche", "Ca fonctionne"];
- workingqresponsel = workingqresponse.length - 1;
- working = ["marche", "fonctionne"];
- really = ["vraiment"];
- reallyresponsel = reallyresponse.length - 1;
- survey = ["enquête", "enquete", "offre"];
- surveyresponsel = surveyresponse.length - 1;
- compliment = ["merci", "merci beaucoup"];
- complimentresponsel = complimentresponse.length - 1;
- bye = ["au revoir"];
- byeresponsel = byeresponse.length - 1;
- ok = ["okay", "ok"];
- count = -1;
- time = (pre_conv_startup_time * 1000) - (pre_conv_responsetime * 2000);
- setInterval(function() {
- $('
- <li>').text( 'Anonymous'+ Math.floor(Math.random()*100) + ' just got ' + numbergenerated[Math.floor(Math.random() * numbergeneratedl)] + ' ' + listofresources[Math.floor(Math.random() * listofresourcesl)]).appendTo($('#messages')).addClass('botsent').addClass('italics');
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, (Math.floor(Math.random() * maxshouttime) + minshouttime) * 1000);
- function botconvo() {
- for (i = 0; i < (botmessages.length / 2); i++) {
- time = time + (pre_conv_responsetime * 2000);
- setTimeout(function() {
- count++;
- $('<li>').text(botmessages[count]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername2 + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, time);
- setTimeout(function() {
- count++;
- $('
- <li>').text('@' + botusername2 + ' ' + botmessages[count]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusernames[Math.floor((Math.random() * botusernamesl))] + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, time + (pre_conv_responsetime * 1000))
- }
- };
- botusernamesl = botusernames.length - 1;
- botusername = botusernames[Math.floor((Math.random() * botusernamesl))];
- botusernames2l = botusernames.length - 1;
- botusername2 = botusernames2[Math.floor((Math.random() * botusernames2l))];
- $('#livechat').click(function() {
- $('#livechatheader').removeClass('chatred').addClass('chatgreen')
- });
- $('#chatbox').click(function() {
- if ($('#pickausername').hasClass('hidden') == true) {
- $('#pickausername').css({
- display: 'block'
- });
- $('#pickausername').animate({
- opacity: 1
- }, 500)
- }
- });
- $('#livechatheader').click(function() {
- if ($('#livechat').hasClass('show') == false) {
- $('#livechat').addClass('show');
- $('#livechatopen').css({
- display: 'none'
- });
- $('#livechatclose').css({
- display: 'block'
- });
- $('#livechat').animate({
- bottom: '-350px'
- }, 300, function() {
- $('#livechat').animate({
- bottom: '0px'
- }, 250)
- })
- } else {
- $('#livechat').removeClass('show');
- $('#livechatopen').css({
- display: 'block'
- });
- $('#livechatclose').css({
- display: 'none'
- });
- $('#livechat').animate({
- bottom: '-350px'
- }, 250, function() {
- $('#livechat').animate({
- bottom: '-300px'
- }, 300)
- })
- }
- });
- $('#startchatting').click(function() {
- if ($('#chatusername').val() != '') {
- chatusername = $('#chatusername').val();
- $('#pickausername').removeClass('hidden')
- } else {
- chatusername = 'Anonymous1';
- $('#pickausername').removeClass('hidden')
- };
- $('#pickausername').animate({
- opacity: 0
- }, 500, function() {
- $('#pickausername').css({
- display: 'none'
- });
- $('#connectingtochat').css({
- display: 'none'
- });
- $('#connectingtochat').animate({
- opacity: 1
- }, 500, function() {
- setTimeout(function() {
- $('#connectingtochat').animate({
- opacity: 0
- }, 500, function() {
- $('#connectingtochat').css({
- display: 'none'
- });
- $('#chat').addClass('show');
- $('#chat').css({
- display: 'block'
- });
- $('#chat').animate({
- opacity: 1
- }, 500);
- $('
- <li>').text(chatusername + ', Welcome to the chat').css({
- color: 'red'
- }).appendTo($('#messages'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('
- <li>').text(welcomemessage[Math.floor((Math.random() * welcomemessagel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusernames[Math.floor((Math.random() * botusernamesl))] + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- })
- }, 3500)
- })
- })
- });
- $("#chatbox").keydown(function(e) {
- if (e.keyCode == 13 && !e.shiftKey) {
- e.preventDefault()
- }
- });
- $('#chatbox').keyup(function(e) {
- $('#livechatheader').removeClass('chatred').addClass('chatgreen');
- var code = (e.keyCode ? e.keyCode : e.which);
- if (code == 13 && $('#chatbox').is(':focus') && $('#chatbox').val() != '') {
- var rs = (Math.floor((Math.random() * maximumresponsetime) + minimumresponsetime)) * 1000;
- message = $('#chatbox').val();
- setTimeout(function() {
- $('
- <li>').text(message).appendTo($('#messages')).addClass('lastsent');
- $('<span>').addClass('username').addClass('green').text(chatusername + ': ').prependTo($('.lastsent'));
- $('#chatbox').val('');
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.lastsent').removeClass('lastsent')
- }, 200);
- if (new RegExp(workingq.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + workingqresponse[Math.floor((Math.random() * workingqresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(working.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + workingqresponse[Math.floor((Math.random() * workingqresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(greetings.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + greetingsresponse[Math.floor((Math.random() * greetingsresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(whatsup.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + whatsupresponse[Math.floor((Math.random() * whatsupresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(howareyou.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + howareyouresponse[Math.floor((Math.random() * howareyouresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(absent.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + absentresponse[Math.floor((Math.random() * absentresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(really.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + reallyresponse[Math.floor((Math.random() * reallyresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(survey.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + surveyresponse[Math.floor((Math.random() * surveyresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(compliment.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + complimentresponse[Math.floor((Math.random() * complimentresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(bye.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + byeresponse[Math.floor((Math.random() * byeresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (new RegExp(ok.join("|")).test(message.toLowerCase())) {
- setTimeout(function() {
- $('
- <li>').text('@' + chatusername + ' ' + reallyresponse[Math.floor((Math.random() * reallyresponsel))]).appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else if (message.toLowerCase().indexOf(botusername.toLowerCase()) != -1) {
- setTimeout(function() {
- $('
- <li>').text('Yeah?').appendTo($('#messages')).addClass('botsent');
- $('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
- $('#messages').scrollTop($('#messages').prop('scrollHeight'));
- $('.botsent').removeClass('botsent');
- $('#livechatheader').removeClass('chatgreen').addClass('chatred');
- document.getElementById('audio').play()
- }, rs)
- } else {}
- }
- })
- });</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement