Bots Home
|
Create an App
Jeeves
Author:
kkbsdonut
Description
Source Code
Launch Bot
Current Users
Created by:
Kkbsdonut
cb.onMessage(function (msg) { // Handles admiration functions if ((msg['m'].endsWith("mm") || msg['m'].endsWith("mm!")) && (msg['m'].startsWith('Mm') || msg['m'].startsWith('mm'))) { cb.chatNotice("Thank you for contributing to the \'" + msg['m'] + "\' fund."); } // Replicates /me functionality if ( msg['m'].startsWith('/me') ) { msg[ 'X-Spam' ] = true; cb.chatNotice( msg['user'] + " " + msg['m'].substr(3, msg['m'].length ) ); } // !fishy if ( msg['m'].match(/!fishy/gi) ) { cb.chatNotice( "Space bar!" ); } // !joke var jokeArray = []; jokeArray.push("What do you call a boomerang that doesn't come back? A stick"); jokeArray.push("Why do bees hum? They don't remember the lyrics"); jokeArray.push("Protractors are useful... to a certain degree"); jokeArray.push("I always wanted to be a Gregorian monk, but I never got the chants"); jokeArray.push("I was going to get a brain transplant, but then I changed my mind"); jokeArray.push("\"Don't believe everything you read on the Internet\" - Albert Einstein"); if ( msg['m'].match(/!joke/gi) ) { cb.chatNotice( jokeArray[Math.floor((Math.random() * (jokeArray.length)))] ); } });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.