Bots Home
|
Create an App
SilenceBot5
Author:
rasputin5888
Description
Source Code
Launch Bot
Current Users
Created by:
Rasputin5888
var silence; function init(){ cb.onMessage(function (message) { if (message["user"] == cb.room_slug){ if( message["m"] == "/silence") { silence = true; cb.sendNotice("silence set true"); } } if (message["user"] == cb.room_slug && message["m"] == "/unsilence") { message["background"] = "#9F9"; message["m"] = "All Messages will be seen"; cb.sendNotice("silence set false"); silence = false; } if(silence == true){ cb.sendNotice("silence is true"); message["background"] = "#9F9"; message["m"] = "Only messages by me will be seen"; if (message["user"] !== cb.room_slug){ message["X-Spam"] = true; cb.sendNotice("X-Spam is true"); } } return message; }); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.