Share your repls and programming experiences

← Back to all posts
pretty cool web chatroom if i say so myself
h
rafrafraf (304)

the server: https://repl.it/@rafrafraf/chatroom-server

the server is in python using the sanic library for requests.

you can join any room(provided you have the password if its locked) and talk to everyone in real time, and see who else is in each room.

you can create your own room, upload a background image for the room, name it and put a password on if you want to make it private.

i made the server and client from scratch in under 2 days so i'm quite pleased with it - i'm 17 doing a level computing.

Commentshotnewtop
[deleted]

finally, a working chatroom that isn't vulnerable to xss

Uzalii (432)

ummm I prefer discord...

SqueezyS (23)

@Uzalii that's great and all, but i don't remember someone speaking of this?

NoelB33 (314)

But like seriously I don’t usually see stuff like this that works! Cool! @rafrafraf

rafrafraf (304)

@NoelBryan thanks bro i rly appreciate it

PowerCoder (663)

You might want to start censoring and moderating these chats...

rafrafraf (304)

@PowerCoder ahahaha that might be a good idea

PowerCoder (663)

@rafrafraf This is cool though 👌! It deserves more upvotes.

AmazingMech2418 (947)

Nice, but you might want to moderate it. There are some inappropriate room names (one in particular that I saw in the list).

rafrafraf (304)

@AmazingMech2418 thanks for letting me know, im working on adding a filter

AmazingMech2418 (947)

@rafrafraf You should be able to add a report button that just tells you the chat name or whatever and temporarily deletes the room until you evaluate it to see if it is appropriate.

KeenanBusch (6)

The would actually be a good [email protected]

rafrafraf (304)

@AmazingMech2418 i like the idea but it could easily be abused

AmazingMech2418 (947)

@rafrafraf Well, it's really probably the only feasible way to moderate the chats. Also, it would be possible after you approve a chat after being reported to whitelist it so that it can't get reported again and only comments can be reported.

[deleted]

Hmmm, this is some weird stuff. I highly would discourage the bad stuff on the site, but ok.

[deleted]

Do you see what people are posting? You should get rid of [email protected]

rafrafraf (304)

@Ihatenoeffort i havent seen anything bad to be honest what did u see lol

[deleted]

69 members online. The room names. It's not kid-friendly. Just because ur 17 doesn't mean that the generation after us, the 13 yr olds, will enjoy it. @rafrafraf

rafrafraf (304)

@Ihatenoeffort the number 69 is completely appropriate for 13 year olds and i dont see anyone else complaining about it. the room names are not all made by be, actually most of them are made by random people, its also my decision whether or not i want to moderate my website, and for now i havent implemented filtering for room names or chats.

[deleted]

Ok then @rafrafraf

chippycoder08 (16)

I kind of agree with you @Ihatenoeffort. There are some inappropriate rooms.

rafrafraf (304)

@chippycoder08 me too but i just havent gotten to filtering just yet, only started it a couple days ago so no where near complete yet 😅

techgeek680 (70)

I made a report room. Hopefully it'll work 😅. @rafrafraf

chippycoder08 (16)

Hey again @rafrafraf, I was looking through the chatrooms and inside m3 toilets, I saw two people apparently having online sex. They were using "body language" which I thought was inappropriate. Fortunately, someone else stepped in and told them to cut it out and that it was totally inappropriate. If you aren't too busy, maybe you would have time to code a filter for the chats? I know you must have worked super hard creating the room, but it just seems like this might be a huge bug.
Thanks!

rafrafraf (304)

@chippycoder08 thank you for letting me know, i actually havent had time to work on the chatroom in a while as im working on my project and another site entirely. im also currently still working on my alevels and have a job aswell. (and!) im making a site for a friend. so my hands are quite tied at the moment. when i find time however, i will get back to the chatroom. and definitely add message filtering. thanks for your patience and interest :)

techgeek680 (70)

found something super bad...

Also, could you possibly make accounts?

rafrafraf (304)

@techgeek680 oh wow😂 and i was initially intending on making accounts but i decided that having it like this would be more convenient for most users who want to check out the site quickly

techgeek680 (70)

all my rooms got deleted. But I have every right to say, YOUR POST IS AMAZING!!! p.s. i didnt have inappropriate names...

rafrafraf (304)

@techgeek680 thanks so much bro :) and yeah theres a bug in repl when writing to files so rooms will sometimes be lost overnight

techgeek680 (70)

you're welcome! i'll just re-create the room XD. @rafrafraf

chippycoder08 (16)

Was there another room wipe recently? The chatroom I created isn't there anymore. Coder's Talk Room

rafrafraf (304)

@chippycoder08 yeah... repl.it is very buggy when writing to files so the rooms will usually get wiped but im planning on using a library to store the database off repl which would fix the issue

techgeek680 (70)

AMAZING!
I want to report a particularly inappropriate one
btw i made all the locked ones.
the password for "user003" is "techgeek680 rules".

rafrafraf (304)

@techgeek680 im glad you like it :) i havent been really active on repl recently as i have some tests coming up but hopefully soon ill get back into the chatroom and improve it more

chippycoder08 (16)

Coder's Talk Room Password= codingrocks!

Vandesm14 (2431)

I love your work man! Awesome job with the chatroom! If you'd be interested in working on something together, my Discord is Vandesm14#3364

rafrafraf (304)

@Vandesm14 sure bro, sounds great. Ill add u now. Im snadwich#3486

[deleted]

YAY! A WORKING CHATROOM!

AgastyaSandhuja (164)

good job u hashed the database :(
xD good job

rafrafraf (304)

@AgastyaSandhuja haha yup nice try getting them passwords tho lmao

TheForArkLD (734)

can you help your server?

rafrafraf (304)

@TheForArkLD sorry but i dont understand what youre asking

TheForArkLD (734)

@rafrafraf OMG XD TYPE MISS

Can i help your server?
rafrafraf (304)

@TheForArkLD lol so what were u asking

TheForArkLD (734)

@rafrafraf Probably it’s doesn’t working i can make works server

rafrafraf (304)

@TheForArkLD the server isnt working for u?

rafrafraf (304)

@TheForArkLD im not sure i quite understand you but the server works fine to my knowledge

TheForArkLD (734)

@rafrafraf oh ok.
(i using phone if i go to other chat then disconnected)

rafrafraf (304)

@TheForArkLD thanks for the offer tho dude

math_genius (7)

Is there any way I can save this to view later on a better computer?

rafrafraf (304)

@math_genius my reply should should be on your notifications on repl so when youre on your computer u can just click it to come back here

MuhammedSimaq (33)

Dude check out our team's new repl

chippycoder08 (16)

Hey, @rafrafraf, every time I make a room and use it, it works. But the next day when I open the chat rooms again, I can't find it.

rafrafraf (304)

@chippycoder08 yeah, thats a repl.it bug with writing to files

AdrianTkachenko (3)

thanks to the person who removed those 2 REALLY inappropriate pics(:

rafrafraf (304)

@AdrianTkachenko yeah if ur talking about the nazi ones i removed those

AdrianTkachenko (3)

you please please please please have to filter some of the images people are posting.):

rafrafraf (304)

@AdrianTkachenko sorry bro filtering images has to be done manually and im not on here all the time

AdrianTkachenko (3)

this is so innapropriate!

HahaYes (1250)

bruh please moderate this

rafrafraf (304)

@HahaYes im working on filtering it bare with me

WYLDYR (18)

am i just retarded or does this do nothing
sorry its me not u
the program is gr8

WYLDYR (18)

@rafrafraf pls help how do i make it work

rafrafraf (304)

@WYLDYR whats not working for u

WYLDYR (18)

@rafrafraf There's no feedback. I run it and the page does nothing and the console makes a connection but no output

rafrafraf (304)

@WYLDYR i was in the middle of working on a big update which left it broken for abit, but its up and running better than ever now :)

WYLDYR (18)

@rafrafraf great, thanks
i wish i could do this but sadly i don't have many brain cells left

WYLDYR (18)

@rafrafraf also, could i help with the HTML bits? contact me at WYLD#7185 on discord?

rafrafraf (304)

@WYLDYR if youre interested in working on it then sure

oignons (311)

how do i get inside my room?

rafrafraf (304)

@ipastrano you just click your room and enter the password if its locked

rafrafraf (304)

@ipastrano if its not showing up it means it wasnt made... are you sure u entered the name field or maybe u made the name too long

oignons (311)

@rafrafraf oh yes the name was long :p

rafrafraf (304)

@ipastrano im gonna add the alert that the name is too long or short later thanks for helping me find this completely glossed over it