Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var messages = [
- "Hey! Why did you stop talking? Party isn't over yet!",
- "I think I bit my tongue o.O",
- "The cool thing about being a bot is that I'm never bored",
- "@RomsKidd Are you there? I want a hug :3",
- "Did you know that giraffes can lick their own ears?",
- "I dream that someday.. I'll become a real human. Then, I'll be a canibal.",
- "Oh look, I found my earring I lost yesterday.",
- "/me coughs awkwardly",
- "You know what would be good? Air conditioning here."];
- var time = setTimeout(reset,2700000);
- //2700000
- function reset(){
- time = setTimeout(function(){
- var a = Math.floor(Math.random() * messages.length);
- API.sendChat(messages[a]);
- reset();
- },2700000);
- }
- API.on(API.CHAT, function(data){
- var msg = data.message;
- var user = data.un;
- var userid = data.uid;
- if (userid != "undefined"){
- clearTimeout(time);
- reset();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement