CosmosisT's TinyChat Script (CTS V1.5.35)

Modified TinyChat - Best Scripts; prepare to be amazed.

As of 2020-03-12. See the latest version.

Author
CosmosisT
Ratings
0 0 0
Version
1.5.35
Created
2019-11-07
Updated
2020-03-12
License
Copyright (C) 2019-2020 CosmosisT
Applies to

CosmosisT's TinyChat Script

Discord channel can be found HERE!

REMEMBER to set your update interval to daily or to click your tampermonkey and update manually. Check back often and share, the goal is to provide a better experience for users no smoke show. Put it to the test.

Features:

  • Games, cool APIs, and more,
  • Owner commands with a lot of power.
  • Get the most out of cameras and the youtube with resizing options and more, check out the magnify option too, it'll work for all accounts.
  • 4K @ 60FPS if your web-cam can handle it, enjoy HD cameras with ultra-fast frame-rate.
  • Userlist and chat are stacked right side, you can adjust the height ratio, and width. This as well changes the cam sizing as more/less space is taken up.
  • Popup notifications push messages through of the opposing chat, so if in PM you will see other PMs or main chat, vice versa. 5 messages can stack at a time they are labeled IN MAIN/PM and disappear after 11.1 of spawning. Forget about changing chats often again. This can be disabled if annoying, look at the command list below.
  • CTS will alert users upon load of their current settings and if a command was incorrect/etc; these messages are invisible to all but you and help with your CTS experience.
  • CTS chat has been redeveloped ground up to solve many of the issues users were experiencing with the box under TC development, CTS sorts and handles all messages and at the same time manages the room the way you want; in constant development users have been able to see this box come alive!
  • AntiSpam System to prevent mass bot attacks, the system learns on its own establishing a list of users who are safe from kick/ban; getting on this list is slow but a few days of activity will define a list greater than 100 - 400+ users. The list will contain all the users you'll save if your autokick/autoban is on; use at your own risk and it's advised to just use the kick unless you're absolutely SURE!
  • There's a notification box for user statuses and system messages, this can be hidden however by default it is on.
  • Push-To-Talk button is locked when you ScrollWheelClick or Ctrl+LeftClick the talk button. It'll resume default at anytime you use normal click on the button.
  • There's a ⚙ top right that lists the following:
    • +  = Change Background Image(+)
    • BG = Change Background Color(+)
    • - = Change Background Image(-)
    • 🗚 = Font Size(+/-)
    • 🖉 = Chat Style Change(+/-)
    • ⛶ = Featured/YouTube Resize
    • ↹ = Chat Width (max: hidden)
    • ≡ = Chat Height (max:userlist hidden)
  • Your Tinychat settings PM, Sound and YouTube all work; toggle and refresh as you please, script will make the proper changes necessary to adapt.
  • Radio feature for users, check media (potentially deprecated)
  • Kick/ban users based on name, keywords used or safelist, all the power you need to keep a chat successful/fun
  • Mentions can be added to let you know when another user has said what you've set. A sound is toggled (if options are on)
  • Highlights can be added to notify you on that user joining, and/or highlighting their name BLUE. For fun, !highlightadd yourusername
  • Greets will welcome users based on who/what you've set. If bypassing with -all you must be a moderator for it to work otherwise you'll default to manual sets.
  • Ignore will block incoming messages from specified users.
  • Reminders are scheduled and repeat on a daily basis till removed, they can be turned off at any time and turned back on; set what you'd like.
  • !avatartoggle and !notificationtoggle will hide their respective elements in chat.
  • Operators (op) can make song requests, like greets you may use -all, however additional you have optoggle to turn this off at any time but keep list in tact.
  • Automatic bot for YouTube if moderators running CTS, handshake/passoff is made with eachother to decide who hosts. On join user will ask !whoisbot, if !bot is returned they have a host, if not you will throw !bot and resume the list if any, if you log out and another user has CTS they'll automatically call for bot if AUTO is set. !bottoggle will turn off this automated process, !bot will bypass if moderator uses it.
  • Embed your favorite videos and images off imgur for others using CTS!
  • Favorited Rooms - Select up to five rooms to feature both in your room (where you avatar list pops out) and on main page at the bottom when you highlight it. Simple control and fast navigation, good luck!
  • Script has many features, zero errors and super-efficient runtime; glitches may occur and to those who discover them please report in discord.  DebugClear: true can be changed to DebugClear: false, to allow simple debugging in console to report any errors back.
  • The script is cross-browser supported so don't feel you need to change browsers, load and enjoy! Tested mainly on Chrom, Brave, Opera, FF; few more work on TC and have not been tested but if they follow a specific standard it'll be fine! Any style issues, please report in discord.
  • Command List

 

  • Admin Commands:
    • !version (toggled)
      • Gets the version of CTS off users (above 1.5.0)
    • !raid (tc link)
      • Send all users 1.5.0 to any room of your choice, have fun!
  • Moderator Commands:
    • !whoisbot (toggled)
      • Asks other moderators if they are running YouTube Bot
    • !bot (toggled)
      • Tells other moderators you are running YouTube Bot
    • !bottoggle (toggled)
      • Bot automation OFF|ON (!bot will take host still)
    • !optoggle (toggled)
      • Operator Mode OFF|ON (moderators can send links still)
    • !autokick (toggled)
      • Auto kick based on AntiSpam Definition List (non SafeList//verified)
    • !autoban (toggled)
      • Auto ban based on AntiSpam Definition List (non SafeList//verified)
    • !yt (link |  keyword)
      • Request YouTube track
    • !ytskip (toggled)
      • Request skip
    • !ytclear (toggled)
      • Clear YouTube tracks (moderators only) 
    • !banlist (toggled)
      • Reveal ban list
    • !banlistclear (toggled)
      • Clear ban list
    • !banadd (user | nick)
      • Add user to ban list, and ban if possible
    • !banremove (# from banlist)
      • Remove name from ban list
    • !bankeywordlist (toggled)
      • Reveal ban keyword list
    • !bankeywordlistclear (toggled)
      • Clear ban keyword list
    • !bankeywordadd (keyword)
      • Add keyword to ban keyword list
    • !bankeywordremove (# from bankeywordlist)
      • Remove keyword from ban keyword list
    • !kicklist (toggled)
      • Reveal kick list
    • !kicklistclear (toggled)
      • Clear kick list
    • !kickadd (user | nick)
      • Add use to kick list, and kick if possible
    • !kickremove (# from kicklist)
      • Remove name fro kick list
    • !kickkeywordlist (toggled)
      • Reveal kick keyword list
    • !kickkeywordlistclear (toggled)
      • Clear kick keyword list
    • !kickkeywordadd (keyword)
      • Add keyword to kick keyword list
    • !kickkeywordremove (# from kickkeywordlist)
      • Remove keyword from kick keyword list
    • !oplist (toggled)
      • Reveal operator list
    • !oplistclear (toggled)
      • Clear operator list
    • !opadd (user | nick | -all)
      • Add user to operator list or -all to allow all
    • !opremove (# from oplist)
      • Remove user from operator list
  • User Commands:
    • !remindertoggle (toggled)
      • Reminders OFF|ON 
    • !yt (link | keyword)
      • Request YouTube track
    • !ytskip (toggled)
      • Request skip
    • !mentionlist (toggled)
      • Reveal mention list
    • !mentionlistclear (toggled)
      • Clear mention list
    • !mentionadd (keyword)
      • Add keyword to mention list
    • !mentionremove (# from mentionlist)
      • Remove keyword from mention list 
    • !ignorelist (toggled)
      • Reveal ignore list
    • !ignorelistclear (toggled)
      • Clear ignore list
    • !ignoreadd (user | nick)
      • Add User to ignore list
    • !ignoreremove (# from ignore list)
      • Remove user from ignore list
    • !greetlist (toggled) 
      • Reveal greet list
    • !greetlistclear (toggled)
      • Clear greet list
    • !greetadd (user | nick |  -all)
      • Add user to greet list or -all to allow all
    • !greetremove (# from greet list)
      • Remove user from greet list
    • !highlightlist (toggled)
      • Reveal highlight list
    • !highlightlistclear (toggled)
      • Clear highlight list
    • !highlightadd (user | nick)
      • Add user to highlight list
    • !highlightremove (# from highlight list)
      • Remove user from highlight list
    • !ttslist
      • Reveal TTS list
    • !ttslistclear
      • Clear TTS list
    • !ttsadd (user | nick | -event | -all)
      • Add user to TTS list or -all to read all or -event for user/system activity
    • !ttsremove (# from TTS list)
      • Remove user or option from TTS list
    • !reminderlist (toggled)
      • Reveal reminder list
    • !reminderlistclear (toggled)
      • Clear reminder list
    • !reminderadd (12:59PM All the text you want!)
      • Add scheduled event to reminder list. AM/PM is not case sensitive and may have a space before it, 12H format however
    • !reminderremove (# from reminder list)
      • Remove scheduled event from reminder list
    • !safelist (toggled)
      • Reveal safe list
    • !safelistclear (toggled)
      • Clear safe list
    • !safelistremove (# from safe list)
      • Remove user from safe list
    • !lists (toggled)
      • Reveal all lists
    • !listsclear (toggled)
      • Clear all lists
    • !greetmode (toggled)
      • Toggle greet mode, simple or server like greet
    • !avatartoggle (toggled)
      • Avatars in chat OFF|ON
    • !notificationtoggle (toggled)
      • Notifications above chat OFF|ON
    • !popuptoggle (toggled)
      • Toggle message/status popup reveal OFF|ON
    • !imgurtoggle (toggled)
      • Imgur image reveal OFF|ON
    • !roll (1-12)
      • Pick the amount of six sided dice to roll
    • !8ball (question)
      • Does this work?
    • !coin (toggle)
      • I got heads!
    • !chuck (toggle)
      • tells a joke
    • !clr (toggled)
      • Clear ALL chat
    • !settings (toggled)
      • Reveal settings
    • !share (toggled)
      • Share CTS with users fast
  • Game Commands:
    • !fish (joins if verified by bot)
      • joins game if verified by the bot and their gamehost is enabled
    • !gameview (toggled)
      • Toggle in chat game notifications OFF|ON
    • !gamehost (toggled)
      • Toggle in chat games (if off no games can be played while you're bot) OFF|ON
  • CTS is the script you need to get the job done, it's updated weekly sometimes daily and follows an ECMAScript 6 standard at zero errors reported in JSHint. Glitches are minimal, and found/fixed immediately. Follow along and share your ideas, see that CTS is all you need.

Developers:
Feel free to message me in discord, we can talk, and share ideas there.

1.5.32-4

3/10/2020

  • Fish game has pricing all in one place, will further correct this, ranking was showing reversed; should now be fixed. I'll fix anything I haven't caught, lots of small changes to lessen code/etc.
  • Added !chuck to the script, either bot or yourself will call the joke, no catch on error but a console.log I'll fill that in soon.
  • Those looking to modify CTS should consider the addon template, this will make keeping your changes and sharing them easier than ever while maintaining base updates!
  • Greet room owner on join once if you haven't said hey yet; resets each refresh. This greet is also active for my developer account so you users can get to know who's really behind this script; ask questions and all sorts.
  • Fixed up Fishing Boat further, lots of small changes; you can expect top five players to work now and prices to be fixed further. Rod/Factory deprecated; no need for them; updated casting rules should now remove insurance after every-round. There is still no objective still and if it keeps up, I may remove the game; fun little idea but needs to provide that sauce...
  • Officially have set up the youtube_enable header, previous updates you may have no seen bot call in free-rooms; you now will however if youtube is disabled (can be seen in the first message on load) you will not get the commands to use and if you try to bypass you will be fatal errored. Paid rooms only! PRO/EXTREME/GOLD only  by the looks of it.
  • !gameview was introduced earlier to hide the game messages, to further this I've added !gamehost for moderators to turn off their games if this feature progresses. So if you want to bot but not host games, use that command. !start/stopboat has been removed because of the automated process.
  • Patiently waiting for YouTube and other features to be fixed by TinyChat; in the time being focusing the small things and adjusting us by micro-updates. TinyChat is in a position they must update and it's a lot of code to go through, hoping within a few-days to weeks we'll get delivery  of this code and fixes.
  • Reverted borders on theme, looked rough; also making way for new volume support if it gets fixed.

1.5.3

3/6/2020

  • Temporary user ignore list has been restored 100%, now instead of using !ignoreadd as a permanent solution, you may just toggle the ignore/unignore. Setting is user/nick based if user is non existent. Clears on refresh. Expect little to no issues.
  • Fish game value adjustments, and optimization on code; new features should be easily added now. Incomplete features will start being fixed up now. In future updates a !gametoggle will be added, kind of like bot-toggle, this will make it so the bot must start the game or leave it to the users. More ideas generating around this slowly.
  • Code revamp just went down, complexity has been restored to its rightful 26; any lower we're godlike but that doesn't mean I won't push for that opportunity. There are 261 functions in this file. Function with the largest signature take 5 arguments, while the median is 0. Largest function has 129 statements in it, while the median is 4. The most complex function has a cyclomatic complexity value of 26 while the median is 2.
  • This update is to prepare CTS for its next movement, major for me, to you guys; possibly not.
  • This is the new recommended version, however 1.5.22+ ensures the safelist fix so you'd be fine using that version.

1.5.2-1

3/4/2020

  • !gameview will hide and unhide the [FISHING BOAT] messages sent by moderator, to reduce spam further, enjoy!
  • Had poorly set the multi-timers, reverted back to single and 30s; users must be verified before joining which takes 10 minutes or less or is instant with paid users/gifted.
  • Issue found with game reset, small patch to see if we've got it perfected. Values will be changes soon and prizes/objective will be established when more feedback is provided.
  • Radio station added, will add more however I am using 365radio to get my stations if there's any you like let me know.
  • Getting ready to add more styles, you may see some duplicates at the moment, these will be changed.
  • Code complexity is rather high, some attempts to lessen it but will focus this when I can get a better idea on the objective and better layout of code to suit this.
  • Safelist is now working 100%, its functionality is working as intended and the list is updating correctly with the new update. Unfortunately list has been cleared so users will need to resync, I don't believe this will be an issue but as always do not use this to kick random trolls, or users this is a bad idea, instead when being spammed use this list and it's used by triggering !autokick/!autoban (ban is discouraged with small lists).
  • Testing on game is going well, determining lots still and planning to make it more efficient with time. I do apologize for the spam, I'm on the fence this round with a lot and am carefully adding what I believe works with the help of the community. To verify however, this patch things have been slowed down, goal is not to spam but have some kind of motor to this game in case you want to run things faster/slower; future adds will get this setup perfectly. Sorry for the wait!
  • Fish game has added timers now to ensure user doesn't insert commands to quickly, it is expected they wait 60 seconds to use most commands. This should cut back spam drastically.
  • The cost for items and some fish have been changed, this is in the workings and a base formula is being designed. Pricing/etc may change as updates continue. Expect it and if any issues or suggestions feel free to discord!
  • Fixed a few bugs, getting to fine stuff now; I will be making the code run more efficient soon.
  • Commented out debug calls and opened up debugger for those experiencing fatals at all, if any; tracking issues will be easier for all. For those unsure, Open developer menu in tools, and when opened launch the console and capture the error (opened up showing its steps)
  • Major changes are being made to allow users the ability to create themepacks soon, these will run second to CTS and push your adds as if you're making a script for CTS; it's be easy and I expect many to post them here. More word on this soon and how it'll work
  • 1.5.2 is the new recommended patch, all users should be using it. Please upgrade today if on an older version of CTS, !share as well. CTSLite development is toast, it may return but it's suggested everyone gets used to the advanced version there's no performance difference and with updates being fast I can't keep up with it yet. Soon however!

1.5.0-1

3/3/2020

  • New Commands:!raid, !version, !fish, !fishupgrade, !fishrob, !fishsplit, !startboat, !stopboat.
  • It's recommended that all users use CTS 1.5.1 and above from here on out!
  • To prevent these botters from running !fish in their message and getting the bot all fucked up, safelist check is made, because the list was reset, give yourself 10 minutes per user, unless they meet requirements asap. They can !fish at any time when verified.
  • !CTS has owner commands updated
  • Enjoy the GUI clean-up, more to come in time.
  • !safelist was adding duplicates this new patch, one check was not made and it threw it all off. Safelist has been reset till this is 100% functional which is believed to be now.
  • Autokick and autoban is much more accurate now, use it when you need to. Safelist has been reset to better adapt with the changes.
  • Owner commands, !version will tell all CTS users to secretly PM them their versions, nothing invasive but a quick check to see if people are up-to-date.
  • Camera fixes for users who cam up with just audio, missing code has been added to repair this, if your camera device is in use and you try to load, the loading modal will stay stuck. (Sort your camera issue and re-broadcast). - titles have been added to buttons to help newer users determine which button does what!
  • New FISHING BOAT game, in early development but while we wait for YT, let's test some things, see where this can go.
  • TinyChat API for  YT is currently down, expected date it'll be up again is not determined. What is known however is that every room now outputs a new YouTube_Enabled header that has been added in this patch, Free rooms so far are confirmed 100%; YT is disabled for them. Expect Fatal Error.
  • CSS Correction majorly, enjoy the small/major changes, this should make things look/feel/work better.
  • Sanitization would break certain instances and now should work properly.
  • Added for owners as well is the ability to raid rooms, !raid https://tinychat.com/stonercircle to send all your CTS users over to stonercircle or wherever you choose; this feature is for fun, start sending your rooms places to make a mess, have fun, or share company. Your welcome
  • All commands are case insenitive now, conversion took place last patch and now is complete.
  • Imgur referrals in PM now get sent through Popup as well, cleaned up base to handle this properly.
  • if bot mode is allowed (youtube_enabled) for the room, bots will handle certain commands like 8ball, coin, and more to give it more authenticity, if no bot however you'd output.
  • Cleaned up some functions, brought complexity down to an appropriate amount, next update even further.
  • SpamPrevention won't toggle to moderators, and has been lifted a smidge.
  • This is the new recommended version but just in case, have 1.4.8 on standby!

1.4.8

2/18/2020

  • 1.4.8 AutoKick and AutoBan are stable, resort to kick to avoid a mess and use feature when list has built up and you are under spam-attack to keep users in, versions below this should be discarded (in other words you should update)
  • !8ball does this feature work? // Let's find out!
  • WebCam's now have a locked in ideal of 30FPS and a maximum of 60FPS, all browsers should be able to load up to 4K; prepare to notice the difference we all just went HD. Prior values were crapola, give this a go; this is in testing, any issues loading camera SHOOT me a message ASAP.
  • Many small fixes this patch, this should be our best patch to work off of, when dealing with bots that come in. 1.4.5/6 had some small issues, 4.5 wouldn't work 4.6 is touch/go 4.7 is sweet and getting better. Update today and leave your reviews.
  • IMGUR off returned undefined messages, a small mistake but fixed!
  • Code Clean-up, small fixes
  • This is the new recommended version, any release earlier than this shouldn't be considered useful and possibly annoying now; 1.4.8 today for optimal or try 1.2Lite!

1.4.7

2/13/2020

  • The AntiSpam system should work flawless now, users should know that using the !autoban/autokick command is no joke. This is of course for moderators but know that feature basis off safelist, don't throw your 50 count safelist into this when a peer may have 500 users in list, a weaker list will kick more users and is not recommended if you're trying to save your room. Build list and see what I mean !safelist. There will be no detection for this spam, it will be assumed that a moderator can catch this attack and properly decide who toggles. To avoid bullshit, avoid the auto ban till your list is fully defined.
  • !ytbypass is now added for moderators to use if API limits have been reached. Know however that this is not the same as !yt and will not build a playlist publically for all moderators to share and moderate. The bypass will force-play a video with a duration of 1 hour, and a fixed title; While using this you'll have to manually play the song after it's over. Left to mods only so playing over-each other won't be too disgusting.
  • !share features CTS Lite now for those not wanting anything fancy, enjoy

1.4.6

2/12/2020

  • AntiSpam system was added last patch, lists should have populated correctly however there was a few issues with the quick write up, it wasn't triggering correctly so a fatal potentially popped up for some engaging the battle. As I am not sure if this will auto-trigger just yet, !autokick for now till this is resolved and make sure your safelist is looking mighty. IF all works, we've got  success here and I'll report the word back asap.
  • Radio links are likely here to stay, enjoy it while it lasts as it may be forever!
  • For those experiencing YT issues, I've implemented a bypass that can be used next patch, it's messy but I may be able to clean it up tremendously if this proves necessary however it may not we'll see.
  • I'll be playing around with Anti-Spam more look forward to a fully working machine.
  • Error checked and corrected code further, no warnings should appear now.
  • Patches 1.4.5 and below are now deprecated, you will no longer find them; convert to 1.4.6 today.

1.4.5

2/9/2020

  • !whoisbot was added last patch, to ensure a clean pass off of bot with users, and to leave the current host as host. Feature is now stable, issues may occur with outdated or output of !bot at same time, however last user to take is the one it resides with, good luck!
  • AntiSpam system has been added, the main commands to know here are !safelist, !safelistremove, !safelistclear, !autoban, !autokick. Right now this feature is BETA and I don't expect it to be flawless just yet any issues needs  reporting and testing in a group environment, single use has be GREAT! List limit is set to 1,000 and is most effective when the list is defined (!safelist). Adding will not be allowed to ensure this process is fully automated however resetting/removing individual users is encouraged however this is not to be used like the kick functions already in CTS; this is to prevent mass-joins and a total lock-out while keeping non spammers in. Kick is automated however can be toggled for kick/ban. If you toggle this all watch-lists will clear and those who can't care (but using CTS) will see their lists empty while they're still adapting. This system will learn and win.
  • Cleaned some of the usual up, some CSS/Code,
  • Radio links have proven to stay online, it  may be time soon after this Anti-Spam system is written fully to focus this feature and join it in like the YT for all CTS users.
  • This may be the new recommended version, however 1.4.4 will be where some reside if 1.4.5 bugs. Let the battle begin; build your lists up now!

Known Issues:

  • Windows Scaling set to anything other than its 100% recommended may possibly break script, this option is different that your browser zoom and is found in display options. If script loads off page, look into this option.
  • Cameras loading on load? Load another room solve captcha and continue back or refresh till fix but first option is best. TC anti-spam wanted a solve and never got it, weird glitch. Not the scripts however!
  • If you clear browser session, cache, cookie; or some kind of clear TC may throw the above issue till you re-authenticate. I cannot fix this but I'll address it.
  • TC socket state upon close does not restart until you recall it on a proper refresh, you'll notice a fatal when retrying to connect or back-tabbing; TC just being TC; do a refresh to fix(F5); any issues check what I got listed, will post more as I find them.
  • Some browsers have been catching random runtime errors others won't? Especially on load, if for whatever reason this is happening to you; reach me in discord for fix.
  • Nothing known so far with the script user feedback has been positive.