Bots Home
|
Create an App
123a
Author:
cat_meow
Description
Source Code
Launch Bot
Current Users
Created by:
Cat_Meow
cb.settings_choices = [ {name: 'tipamount', type: 'int', minValue: 1, defaultValue: 10, label: 'Minimum tokens required for a thank you message'}, {name: 'background', type: 'str', defaultValue: '#DB7093', label:'Background color (use HTML-code)'}, {name: 'foreground', type: 'str', defaultValue: '#FFFAF0', label:'Text color (use HTML-code)'}, {name: 'tnx1', type: 'str', minValue: 1, defaultValue: 'Thank you', label:'1 Thank message'}, {name: 'tnx2', type: 'str', minValue: 1, defaultValue: 'Grasias', label:'2 Thank message'}, {name: 'tnx3', type: 'str', minValue: 1, defaultValue: 'Spasibo', label:'3 Thank message'}, {name: 'tnx4', type: 'str', minValue: 1, defaultValue: 'Arigato', label:'4 Thank message'}, {name: 'tnx5', type: 'str', minValue: 1, defaultValue: 'Danke', label:'5 Thank message'}, {name: 'gif1', type: 'str', minValue: 1, defaultValue: ':gif1', label:'1 Gif for thank massage'}, {name: 'gif2', type: 'str', minValue: 1, defaultValue: ':gif2', label:'2 Gif for thank massage'}, {name: 'gif3', type: 'str', minValue: 1, defaultValue: ':gif3', label:'3 Gif for thank massage'}, {name: 'gif4', type: 'str', minValue: 1, defaultValue: ':gif4', label:'4 Gif for thank massage'}, {name: 'gif5', type: 'str', minValue: 1, defaultValue: ':gif5', label:'5 Gif for thank massage'}, ]; cb.onTip(function (tip) { if (parseInt(tip['amount']) >= cb.settings.tipamount) { tnx = [" tnx1 ", " tnx2 ", " tnx3 ", " tnx4 ", " tnx5 "] a = Math.floor(Math.random() *5) gif = ["gif1", "gif2","gif3","gif4","gif5"] b = Math.floor(Math.random() *5) tipmsg = (gif [b] + tnx [a] + gif [b]) cb.sendNotice(tipmsg, " ", "background", "foreground", "bold") } }); function init() { } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.