Bots Home
|
Create an App
Snapchat handle 2
Author:
frootoftheloomtest
Description
Source Code
Launch Bot
Current Users
Created by:
Frootoftheloomtest
cb.settings_choices = [ { name: 'snapchatHandle', type: 'str', minLength: 1, maxLength: 255, label: 'Snapchat handle', }, { name: 'tipRequired', type: 'int', minValue: 1, maxValue: 1000, label: 'Tip required', }, ]; cb.onTip((data) => { if (data.amount >= cb.settings.tipRequired && data.message.match(/snap\s*chat/i)) { // This probably can't happen but let's be defensive. if (!data.from_user) { cb.log('No data.from_user found'); return; } cb.sendNotice(`Hey! My snapchat is ${cb.settings.snapchatHandle}`, data.from_user); } });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.