CosmosisT's TinyChat Script (CTS V1.5.11)

Modified TinyChat - Best Scripts; prepare to be amazed.

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

Author
CosmosisT
Ratings
0 0 0
Version
1.5.11
Created
2019-11-07
Updated
2020-03-04
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 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! 
    • !clr (toggled)
      • Clear ALL chat
    • !settings (toggled)
      • Reveal settings
    • !share (toggled)
      • Share CTS with users fast
  • 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.0-1

3/3/2020

  • 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.