|
Multiple menus, rate limiting, and dupe handling.
v1.0.0
YATM addresses several problems with most tip menu apps:
1. YATM will not spam your chat room. The YATM bot watches for messages in chat and will only post a new tip menu if a certain number of messages have been posted (the rate limit).
2. YATM gracefully handles mutliple items with the same price. If a member tips and there is more than one item available for that price the member will be sent a private notification asking them to tell the broadcaster what item they tipped for.
3. YATM allows broadcasters to define multiple menus (five in total) and then select amongst them during bot setup or at any time via chat commands.
4. Unobfuscated code with a clear open source (Apache 2.0) license.
The source code for this bot is also available from https://github.com/DickAvatar/YetAnother TipMenu
• command
The command members will enter to view the tip menu
• separator
The symbol to display between items in the tip menu.
• delay
The delay (in minutes) between tip menu displays.
• rate limit
The number of messages the must have been entered into chat between menu displays. Set this to 0 (zero) to disable rate limiting.
• verbose
Be notified when users request the tip menu.
• welcome
Should users entering the room receive a notification about the tip menu being active.
• order
If the price should be displayed before or after the item description.
• weight
Font weight of the text of the tip menu.
• color
Font color of the tip menu.
• background
Background color of the tip menu.
The font and background colors MUST be valid HTML color codes. See https://html-color-codes.info for a list of valid color codes.
Each menu can have a maximum of 15 items. To define a menu item enter the desired price followed by a description. For example:
25 If you like me
will define the menu item "If you like me" for 25 tokens.
It is possible to have more than one menu enabled and the items from all enabled menus will be combined into a single menu. Menu items are always sorted by price so there is no need to order items on the setup page.
Blank menu items are ignored as are empty menus. For example, a broadcaster might define items 1, 3, 4, 6, and 7 in menu one and items 12, 13, 14, and 15 in menu four.
The broadcaster can change the set of enabled menus at any time with chat commands.
Enables one, or more, new menus. For example "/tipmenu 1 3 5" will disable the current menus and enable menus 1, 3, and 5. Users will now see the new tip menu when they enter the /tipmenu command.
Change the separator symbol used when displaying the tip menu in chat. For example "/tipmenu heart" will change the tip menu separator symbol to a heart ❤️.
List the available separator symbols.
Determines if the price appears before or after the item description in the tip menu.
© Copyright Chaturbate 2011- 2024. All Rights Reserved.