Share your repls and programming experiences

← Back to all posts
Working Chatroom
h
pyelias (657)

It's a chatroom!

https://repl.it/@pyelias/Chatroom

If there's any bugs, say so in the chat (or comment here).

And don't spam or you get muted.

(this project has been discontinued, if you wanna talk to people join the discord https://discord.gg/5gcPC6B)

Commentshotnewtop
MatthewDoan1 (11)

The chat currently isn't working.

Steven_The_GuyT (197)

@MatthewDoan1 yeah, it isn't. he told us the chat was down; just join the discord

chocolatejade42 (14)

Could you make a tutorial for this? That'd be very helpful!

Nightstrike (5)

The chat is down....

EchoCoding (252)

This is actually amazing. Can you make a chatroom that needs a certain ID to get into? Say if you wanted to talk to 3 or 4 select people without a massive chatroom seeing it.

pyelias (657)

@echocoding: I'll start working on that.

EchoCoding (252)

@pyelias: Awesome! I'd do it myself but I'm not nearly as skilled haha

pyelias (657)

@echocoding: Added. There's a room id system now. And PMs.

EthanEthan (1)

hey is anyone online :)

Babbel (56)

should have the most upvotes

replitcode (101)

Announcement: I am no longer supporting this project, so it'll probably end up dying soon.

OwenBradstreet (79)

This is really cool - was just thinking that instead of saying the chat it is on the left, instead say the time it was sent. This would make it easier when determining if people are still online or not.

Titan_Lord (10)

kudos to the creator

William3 (9)
Traceback (most recent call last):
  File "main.py", line 125, in <module>
    STAFF = db.ConnectedDatabase("chatroom", "staff").query()
  File "/home/runner/db.py", line 14, in __init__
    self.state = requests.post(self.url("state")).json()
  File "/home/runner/.local/share/virtualenvs/python3/lib/python3.7/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2009k (2)

The chat currently isn't working

Steven_The_GuyT (197)

yo (from the world class yo-er) you should fix this chatroom

GameMaster1928 (40)

It gives me an error:

pyelias (657)

@GameMaster1928 you put this on the wrong post dude

GameMaster1928 (40)

@pyelias I must have forgotten to copy it, that's another error I had copied earlier. I updated the error.

pyelias (657)

@GameMaster1928 thats because i stopped maintaining this a while ago, join the discord instead if you want

ebest (551)

@GameMaster1928 sigh How many times am I going to see this?

ColtonKimmi (1)

PLS PLS PLS fix this. I would really like that.

Titan_Lord (10)

kudos to creator
this is very good

hayaodeh (139)

@microwither I think you'll like this repl. very cool 👍🏼

CyanCoding (1369)

That's AWESOME! I can't believe that actually works! You DEFINITELY have my upvote!

thoq (4)

Wow! Nice work! Very sophisticated! Made a fork and will try to understand it later.

CyanCoding (1369)

For me, when I write, it gives me a super long error and then doesn't display messages anymore.

Case_Buttitta (39)

I was the one speaking non English by the name of "Tux" if anyone was wondering

Emanuelle04 (1)

Good job! One day i wish i can code like this!

pyelias (657)

Now with more features:

Multiple rooms
PMs
Censoring (don't try to hack around it, its client side)

Eaglefang (4)

I think it would be great if you could see the date that each comment was posted.

pyelias (657)

@eaglefang: Added: "!when|id", where id is the number to the left of the message.

CyanCoding (1369)

Also when you type in the password correctly it says incorrect password command complete.

pyelias (657)

@microwither: ? "When you type in the password correctly" How do you know the password?

CyanCoding (1369)

@pyelias: It's right at the top (line 14 I think) of your program.

thoq (4)

@microwither: Wow, that would be a very complicated password.

But it actually looks more like a hash of the password.

pyelias (657)

@thoq: yup, its the hash. i wouldn't make it that obvious. (still pretty easy to find with a little coding)

thoq (4)

@pyelias: the md5 hash-functon in the next line (now it's a couple of lines further down) was kind of a clue ;-)