FREE POLL V2 BOT
Author: everlast_69
Description Source Code Launch Bot Current Users

Short Description:

Free Poll V2 Modified to to be a bot

Full Description

* Title: FREE POLL V2.1
* Author: Everlast_69 (original code by Naturist_be)
* Version: 2.1 (Original Version 1.0 (07/23/2013))
* Thanks to Naturist_be for your effort in creating this app.
* Summary:
FREE POLL Everyone can play!

*
* Description:
(3/9/2020) everlast_69: below is the origional description followed by my modifications.
Options:
- Set the number of votes limit
- Set at least 2 choices (maximum of 5)
- Users can vote only once

List of commands:
Users only type the number of the choice they want
!stat = display choices and stats


Have fun!

Naturist_be
*

* Modified by everlast_69 (3/9/2020)
This app was oriionally created by Naturist_be on 07/23/2013, more then 6 years ago and has
not been modified since. This was a good app but needed to be maintained over the years.
Since this app was written many changes have happened on CB. This app no longer functions
corrctly. There are many bots that modify messages by adding things like tokens tipped and
other information to the beginning of the message. This causes this app to fail and not
count votes. I have modified the way votes are made, so this does not happen, by doing the
following modifications:
1. Modified to run as a bot
2. changed the vote syntax from a single number to !n. users now type !1 to vote for option 1
3. modified the onMessage function to find the !n anywhere in the message using Rergular Expressions.
4. stripped off the ! and passed the number to the original code.
5. Added a setting to set the frequency the app will display the voting options
6. added a cb.onEnter function to tell users when they enter the room that the poll is running
7. Added a setting to enter what the poll is for.
8. Added a command !end so the broadcaster can end the voting early
9. Added a command !help to provide help on how to vote.
12/12/2020 everlast_69
fixed a bug that was not showing option 5.
added a way to use the bor multiple days by entering the current count for each option at start up

© Copyright Freesexcam 2011- 2024. All Rights Reserved.