IMPORTANT: click "show more"
chat app in node.js using socket.io
I've made many chat apps previously but I got inspiration for a simplistic-looking, console-based one from the previously trending "ctrl chat" (by
@blockowo). I felt bad about its many serious security flaws and literally zero validation. Seeing it get destroyed by exploiters made me want to start working on a secure chat app with validation, backend word filters, powerful anti-spam, and a proper account system. (I've also been begged to make a console based one because people complain about school blocking repl pages blah blah)So far I've made the basic security infrastructure and a simple layout, plus a powerful anti spam. This of course isn't finished and there are PLENTY of updates planned and coming soon.
―――――――――
Coming Soon:
- more efficient validation process using socket IDs
- captcha
- ascii emotes
- premium status with perks and whatnot
- private chat rooms
- your suggestions! (leave a comment)
i suggest add a shop xD
It doesn't work
yes
You have disconnected please re-run the repl
How this 1 line code works?
You really call obfuscating the entire code "making it secure"? Kinda goes against the whole point of open source
Is it just me or does this really look like a python project?
awesyum
I like it .it is awsome
can I like send multiple messagees without having to log in everytime?
67 Texts You Can Do Anything
deobfuscated code --> https://replit.com/@IanChen4/coldchatdeobfuscator#main.py
hi
Hi
i want to contribute by pushing issues onto github or maybe reporting them on a discord server. how can i do so?
I have a request. Could you try to install your bad words filter repl into this?
why is it obfuscated?
If you are a hacker you can create private repls and nobody can view the code lol. You don't even need to obfuscate it...
this code is so ... AWESOME
- added a security step
- removed easter egg
――――――――――
Planned Updates:
- captcha verification (solves basically all problems)
- implement socket IDs
- make different ban system
- premium features and subscription
- ascii emotes
- private chat rooms
- then I can deobfuscate code and you can skid it
it's all just one line XD
You should block certain links that ppl keep spamming.
bro
We NEED BETTER login system also can u add like a premium version that people pay for like discord nitro
skull
WaterZ is it possible for you and me to chat through this game?
nice
can you find it?
Also I added a few things to anti spam because someone spammed ("spam" is an overstatement, it was slow because they probably use a 15-year-old pc)
if you used webockets then how come there is a refresh button? shouldnt websockets notify you when you receive a new message?
does it log you out to prevent spam? Also to filter chat, you can use Trie. I've heard of this concept in python and it's hard to implement in js but you can try.
It sends you to login when you send a message .-.
i don't get it
hi
hi
it banned me for saying fat...
If this program is more secure than
@blockowo 's CTRL CHAT, then what is the need for obfuscating your code? If it is truly secure, then you should be able to just have the un-obfuscated code on Replit.Obfuscating your code doesn't make it secure, it just makes it harder to read and interpret by the people who could give good suggestions.
dose not work
can i ask a thing ? How to get string from console when i typing on it
I don't get it, I feel like i'm sending nothing when I click send message. and the only text that I see on the screen that looks like what someone else said was just "hola, 05/26, 23:58 (GMT-0): putas". But overall I think this can become really good, your just need to fix some things up.
i think it could be made more simple and minimalist (removing the giant ascii text for example), for a better experience, also showing the message you sent would also be nice. otherwide solid app!
норм
yoo
Why does it sign you out when you send a message?
poop
fixed ".includes of undefined" error and all other errors associated with it
also i reobfuscated the code until I make the hard bans server side and set up a db storage system for bans instead of a temporary array that is reset every time you reset the server
I sent a message, and upon pressing the refresh button, I got an error that was just a wall of unreadable text because the code is obfuscated, but the error itself was “TypeError: i is not a function” at index.js, line 1, char 8563, and char 11475.
Might wanna check out why you’re calling what seems to be a variable as a function at some point. Might be a shadowed function, or mistype.
its just like hacking
bruh typing i havent even played man it already seems bad
How to send messages, e does not work
how do i send a message?
use hashcash to prevent spam. I would have used that.
every time i sign up the password is "profanity" when my passwords are some numbers edit:nvm it was because i already signed up
there has to be a cencor thingy
this is so good !
Why is code obfuscated? What if I wanted to remix/change it for the better?
id HIGHLY reccomend having it clear the console whenever the user refreshes the chat board. either than that (and me not seeing my messages), seems pretty good.
WHY CAN'T I EVEN SEND MESSAGES?!
this will attract degenerate spammers this was such a bad idea lol
if you don't make server request in 90s it disconnects you (reduces the server's load because I unboosted it)
also if it lets you log in but doesn't say "success!" its bc u afk for too long and once you're disconnected you have to re-run the repl so you'll technically be logged in on the client side but not on the server side so basically you can't send message or anything
Oh nice! Persistent login is here!
well hello people my day is going good but i do not no how to tell my crush that i have a crush on him and if you see this you no who you are
hello
Okay, now it’s better, but every time I send a message it says “good: message too long!” and kicks me back to the home screen. At least it sends the message now. I just have to re-login every time I send a message.
respond back please
i am guessing everyone is busy
how come no one is responding back to me
people how come no one is responding back
JESUS, why is all your code in ONE line?
nobody's chatting :(
it keeps making me relog in
lol try coding this in Python, I guarantee you the output will be better.
Also, why doesn't it work when I login, I have to login twice for it to work
To clear things up like sachsthebased is prob some low level skid dont frame me to be a person who cant code properly
@WaterZ69Is there anything I can add you on such as discord to talk to you about coding and other stuff, I have some quesitons.
update: the problem should be fixed! have fun and thanks for pointing out the problem otherwise I wouldn't have noticed
update: I found what the problem is with messages not displaying, will be fixed soon. Sorry for the trouble!
Why doesn't it work? When I send a message, nothing happens (yes, I am pressing e).
I give this a 3/10 its a cool idea but it glitches alot when i write like 10 words it copies my sentence over and over againg and when i try to send a message it doesnt
how do i chat
bruh
hello
i am guessing everyone is busy
i said “hello everybody” and it gave me an error saying the message was too long, and then it kicked me to the login screen.
edit: yeah, I can’t send messages. It just tells me the message is too long no matter what I do, and my message never appears in the chat.
edit 2: now sending messages just sends me back to the home screen…
edit 3: 40 minutes later. Same error. It always says “good: message too long!” and kicks me back to the home screen. Also, the ascii art turns into whatever this is:
anyone going to respond back?????????????
helo
Why did you use waterz_coldchat for all your variables, etc.