kudos to creator
this is very good
kudos to the creator
dis game doo doo
this is awesome? i'm pretty sure it uses sockets and threads, right? (i didn't read the code yet...)
in sted of atexit you can use sys.exit()
Why is the password check done client side? It needs to be done server side. I can simply remove the password checks in the code, giving me access to everything. Despite the good attempt with the hash and salt, it doesn't do anything if I don't need it.
This is amazing great job man!
how to make a room you not say clear i don't understand it.
@quockhanh: Its awesome, but you should consider having a colorful scheme to it... add this module to your repl...
from termcolor import colored
then when you have that imported, wherever you want the text to be colorful just do something like this...
print(colored("Blah Blah Blah... This is a test!", "testcolor")) where testcolor is the color you want the text to be (colors include, green. magenta, yellow, cyan, white, red, blue, grey) and where colored is the command being put forth to enable colors being activated.
another example would be as so...
example = input(colored("Give me an example please!", "testcolor"))
This is just advice being given, you don't have to follow through with it if you don't want to!
Good luck on your coding, and keep up the awesome work!
The code at https://repl.it/@replitcode/PyChat isn't working. There is an error at line 357
Here is what it says
Traceback (most recent call last):
File "main.py", line 122, in <module>
PW = db.ConnectedDatabase("chatroom", "staff").state # hashed password
File "/home/runner/db.py", line 14, in __init
self.state = requests.post(self.url("state")).json()
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.6/json/init__.py", line 354, in loads
File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
it was working earlier but not any more
this is great
hey boys and girls
How to actually change rooms ?
I can't enter the command using the formula you gave
pro stuff there, props
ADMINS: Beware fakes. Don't trust that anyone else is an admin unless they can use !run_other successfully to make you say something (!run_other|pw|who|say|test).
NEVER pm the password.
I've added more authentication to the admin username system for now, but it won't stop anyone.
As an alternative, the web chat is operational, and can be found here: https://django-chatroom--pyelias.repl.co/
It is much more secure.
There is an error in the code......
File "main.py", line 286
IndentationError: expected an indented block
Omg so op
Really good job dude! How did you make the online aspect work? And is there a tutorial for it somewhere?
It works amazingly!
for some reason, when you say "hello", it says "Hi, i'm Allison and I am here because of Heroin abuse!"
Look, I made another thing: https://repl.it/ibuiltthis/p/neural-network-python
And another: https://repl.it/ibuiltthis/p/python-c-extension-test
totally not blatant self-promotion
@pyelias There every time I try running the program I encounter an error, its mostly just a lot of html code.
It's great, but there are way too much spam whenever I enter. Could add some rules to limit character amount or autodetect repeating messages?
@pyelias what does the flush command do?
@pyelias When I try to change my name color (I am an admin) it says unhashable type: 'list'
@pyelias Can you add a staff room please. Also Zavexeon and I were thinking about letting me become a moderator! I have been very keen on instructing people not to have offensive messages, and to not spam the chatroom. I have tried to also keep conversations appropriate. Just wondering if I could become part of your staff! Thank You!
P.S. My username for the chatroom is "KingOfCode"
ITS MAD 5 STARS G YOU GET ME BLUD ITS SICK
whats poppin my jimbos!
This is really cool.
Also, you can change spammy names by running exec|name="newname" on them.
@pyelias I was wondering if we could collaborate on some future projects.
better censoring (now it makes you look like an idiot)
if you see a guy named VANISHED or anything like VANISHED just tell pyelias
Colored text. Use !c|color||text (not a typo, two |s) to use it.
More extensive guide in the banner at the top of the code.
Public Service Announcement:
Don't use forked versions of this. It is being updated very frequently, and this can cause people with different versions to not be able to properly use it.
NEVER SEEN ANYTHING AS AMAZING AS THIS
You deserve no.1 by far, the a brute force hack isnt very hard to build, you should win by FAR
it would be cool to be able to change chat colour
how do you set up the underlying database for it?
Also, one suggestion: I would recommend that you make personal accounts for people, so you can set up a sort of 'inbox', to continue the PM idea.
This is the coolest thing I have seen anyone build in Python ever. I am literally mindblown.
You deserve way more upvotes man. This is just amazing!
I love how your project is growing, I think the more feedback you have the more you can have people using it, you wrote it with Python and soon we'll unlock web support for Python by supporting django.
@pyelias, You have written a Cool project ! I like this idea very much ! , I will try this idea out ! Elias, please do remind me, If you have written any new projects, Cause I have seen your projects, and they are very cool even ! I hope you will be in TOP 3, Good luck ! :) Have a Great Day !
this is sick m8
Now with more features:
Censoring (don't try to hack around it, its client side)
Good job! One day i wish i can code like this!
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.
I was the one speaking non English by the name of "Tux" if anyone was wondering
Also when you type in the password correctly it says incorrect password command complete.
Wow! Nice work! Very sophisticated! Made a fork and will try to understand it later.
This is awesome, how does this not have more upvotes?!?!?!
@haya: Yeah for sure, and yeah, repl most definitely needs something to show more people less upvoted repls. What I've been doing is going through all of the most recent ones and seeing if there's anything that deserves my upvote. This most definitely was deserving of my upvote. You should check out "D & D Simulation" and "PythonDictionary(Not an actual dictionary. I'm not boring like that)" I made python dictionary so I may be biased, but I put way too much work into it not to promote it.
@gotcha: you don't need to feel anything :) I manage I built this, I'm an admin and the designer of Repl.it, I answer people's questions all the time and I felt I need to answer yours :) I also do the same by going to the new repls and check them out and vote for them, that's pretty awesome that you do the same thing. Thanks for the suggestions of the repls I'll definitely will check them out!
That's AWESOME! I can't believe that actually works! You DEFINITELY have my upvote!