repl chat: Integrated global chat for repl.it
h
MrEconomical (1870)

repl chat yey

After making repl mail, I still wasn't satisfied. There was a mailing system now, but no way to chat in real time on repl.it itself. So I decided to make a chat system cool kek.

Features

(yes I love this repl share post format dont judge)

  • Log in with repl auth - use repl auth to log in with your repl account @amasad
  • Integrated - repl chat pops up right on repl.it! I styled it based on the multiplayer chat so it is a little window on the bottom right. I just tweaked a few things to improve the UI where I saw fit. More on this in Usage Instructions
  • Fast - repl chat uses WebSocket to send chat messages in real-time
  • Message history - unlike many other chat applications cough cough and somewhat repl multiplayer chat itself cough cough repl chat stores the last 50 messages so you will have context every time you log on

Usage Instructions

To use repl chat in repl.it, save it as a bookmarklet. A bookmarklet is basically a bookmark that on click executes some javascript code, in this case adding the repl chat window to repl.it.

  1. Create a new bookmark (name it whatever you want)
  2. In the url section, copy and paste this:
javascript:!function(){if(location.href.startsWith("https://repl.it")){const t=document.createElement("script");t.id="repl_chat_script",t.src="https://repl-chat.mreconomical.repl.co/use/bookmark.min.js",document.body.appendChild(t)}else alert("Go to https://repl.it to use repl chat!")}();
  1. Now, when you are on repl.it, if you want to add the repl chat window, simply click on the bookmark!

If you really wanted to, you could use the browser client here: https://repl-chat.mreconomical.repl.co but why tho?

DATABASE SOURCE CODE: https://repl.it/@MrEconomical/repl-chat-database-source

You are viewing a single comment. View All
MrEconomical (1870)

@jhman103751 do you have discord to communicate easier? I would love to help