Apps Home
|
Create an App
TestBot2e
Author:
mackman776test
Description
Source Code
Launch App
Current Users
Created by:
Mackman776test
var Application = { Name: "DataFeed", // The name of the application Version: 1.01, // The current version of the application Author: "mackman776", // The author of this version. Don't change this unless you modified something! OriginalAuthor: "mackman776", // The original author, I.E. me. If you change this, you're a cunt. It's not like it gets displayed anywhere Debug: false, // Whether the application is in debug (verbose) mode. Don't change this in prod, or you're a retard StartupTime: null, // The time the application started up. Don't set this, it gets set at runtime Constants: { // Goals: 8 // The number of goals to permit configuration of in the startup settings window - add to UserConstants below to override per user }, }; cb.onEnter(function (user) { ActionDataJoin(user['user'], user['gender']); }); cb.onFollow(user => { ActionDataFollow(user['user'], user['gender']) }); cb.onLeave(function (user) { ActionDataLeave(user['user'], user['gender']); }); cb.onMessage(function (message) { cb.chatNotice(message['user']); cb.chatNotice(message['m']); cb.chatNotice(message['gender']); ActionDataMsg(message['user'], message['m'], message['gender']) }); cb.onTip(function (tip) { ActionDataTip(tip['user'], tip['amount'], tip['gender']) }); function ActionDataJoin(txtName,txtGender) { var dataToSend = { txtReqType: "Join", txtName: txtName, txtGender: txtGender }; SendData(dataToSend); } function ActionDataLeave(txtName, txtGender) { var dataToSend = { txtReqType: "Leave", txtName: txtName, txtGender: txtGender }; SendData(dataToSend); } function ActionDataFollow(txtName, txtGender) { var dataToSend = { txtReqType: "Follow", txtName: txtName, txtGender: txtGender }; SendData(dataToSend); } function ActionDataTip(txtName, intAmount, txtGender) { var dataToSend = { txtReqType: "Tip", txtName: txtName, intAmount: intAmount, txtGender: txtGender }; SendData(dataToSend); } function ActionDataMsg(txtName, txtMsg, txtGender) { var dataToSend = { txtReqType: "Msg", txtName: txtName, txtMsg: txtMsg, txtGender: txtGender }; SendData(dataToSend); } function SendData( dataToSend) { $.ajax({ url: "https://olivebot1776.azurewebsites.net/Data/DataCom",//'/Data/DataCom', type: 'POST', data: { dataString: JSON.stringify(dataToSend) } }).done(function () { }); }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.