Bots Home
|
Create an App
Hello_World!
Author:
testerboi
Description
Source Code
Launch Bot
Current Users
Created by:
Testerboi
cb.onMessage(function (msg) { var sentence = msg['m']; var search = "im"; var print = 0; var imloc = null; let greeting = ["Hi"] if ( sentence.toLowerCase().indexOf(search.toLowerCase()) != -1 ) { cb.sendNotice("I found the keyword"); let words = msg['m'].split(" "); for (var i = 0; i <= words.length; i++){ cb.sendNotice(words[i]); if (words[i] == 'im'){ imloc = i; } } for (var i = 0; i <= words.length; i++){ if (i > imloc){ greeting.add(words[i]); } } greeting.add("I'm dad!") cb.sendNotice(greeting); } else { cb.sendNotice("not found"); } });
© Copyright Chaturbate 2011- 2025. All Rights Reserved.