Share your repls and programming experiences

← Back to all posts
Working Chatroom
pyelias (2366)

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 (might still work until early 2020), if you wanna talk to people join the discord https://discord.gg/5gcPC6B)

Comments
hotnewtop
[deleted]

WTF HOW IS THIS 2nd IN HIGHEST UP VOTE IT HAS SO MUCH ERORORS

LegendaryWolf (619)

hello, @Alpha209Leader, Im an Alpha too, but a legendary one..

[deleted]

@LegendaryAlpha Alpha209 is a real group i am the learder of it

X24 (28)

@Alpha209Leader The chat is down btw, so that's why. You were a few years too late to experience this.

[deleted]

@X24 WHAT R U SIERES

[deleted]

@X24 was it good

[deleted]

@X24 1 out of 10 1 bieng to worst 10 bieng the best

MatthewDoan1 (336)

The chat currently isn't working.

Steven_The_GuyT (302)

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

LingWu1 (85)

yes, can you read the message? @MatthewDoan1

elburg (37)

@LingWu1

Traceback (most recent call last):
  File "main.py", line 128, in <module>
    STAFF = db.ConnectedDatabase("chatroom", "staff").query()
  File "/home/runner/prn3V_cgqao/db.py", line 14, in __init__
    self.state = requests.post(self.url("state")).json()
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/requests/models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/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)
chocolatejade42 (45)

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

EchoCoding (257)

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 (2366)

@echocoding: I'll start working on that.

EchoCoding (257)

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

pyelias (2366)

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

Nightstrike (6)

The chat is down....

EthanEthan (1)

hey is anyone online :)

Babbel (64)

should have the most upvotes

replitcode (135)

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

OwenBradstreet (124)

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 (8)

kudos to the creator

Chocolate16 (36)

Traceback (most recent call last):
File "main.py", line 128, in <module>
STAFF = db.ConnectedDatabase("chatroom", "staff").query()
File "/home/runner/7vOlTd8EIqm/db.py", line 14, in init
self.state = requests.post(self.url("state")).json()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/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)
 aahh

elburg (37)

this appeared to be popular. Who wants me to fork this and bring it back?

X24 (28)

@elburg It would probably be very good if you did

elburg (37)

@X24 I did run into a problem though: The Database the project originally used is not available. I don't know whether to try to recreate it or try to make another one.

X24 (28)

@elburg Try doing the latter

elburg (37)

@X24 i should try to find out how it worked. want to help?

elburg (37)

UPDATE: Got past a bug with the user groups, but now hit with another error related to the identification of the user groups. I have also found out there is another server that is used as a dependency for the chatroom, so I am going to try to replicate that with my Internet Services framework that of which is in development.
I have also decided to create a GUI.

[deleted]

does not work so much errors

YeetsaJr (20)

Has anyone been able to fix this?

brennanmcdaniel (5)

welp... its almost the end of 2020
yay covid 19 is almost over.
so i dont have to sit down and review peoples repl's all day

BD103 (113)

It's broken.
~Sadness~

ivanchang309 (12)

@pyelias he's not fixing it he just put another link

hg0428 (192)

Json.decoder.jsondecodeerror.

marsbar (11)
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 (11)

The chat currently isn't working

Steven_The_GuyT (302)

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

[deleted]

It gives me an error:

https://storage.googleapis.com/replit/images/1555357077229_92c371c97bb04c5fa455868bde6ff1fe.pn

pyelias (2366)

@GameMaster1928 you put this on the wrong post dude

[deleted]

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

pyelias (2366)

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

[deleted]

@pyelias
I made my own chatroom to replace this one!
https://chat--gamemaster1928.repl.co

ebest (663)

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

[deleted]

@ebest
Many times apparently xD