Share your repls and programming experiences

← Back to all posts
20
Pychat

I'm making a Python chat server to mimic this one:
https://repl.it/talk/share/Working-Chatroom/3741
But that one does not work anymore.
Here's mine:
https://repl.it/@ebest/Pychat
I still want to encrypt it though.
More features coming soon! (hopefully)
Use !commands to show all commands

Changelog:


V: 1
Added users, a few commands


V: 1.1
Added !colorc to change text color
Added !commands to show commands
Added admins


V: 1.2
Improving !who, fixed problem of having
who repeat at login the amount of times
!who's been called.


V: 1.3
fixed problem with all times from
messages before startup being condensed
so all times are the startup times


V: 1.4
Added new commands, added hidden
passwords with usernames.


-Ebest

Loading Repl
Commentshotnewtop
2

Maybe try to prevent impersonation by removing names like 'ebest'?

2

@HarperframeInc what do you mean? Oh, the usernames that are accounts are all colored, so you can identify them as the real ones.

2

@GameMaster1928 LOL doesn't work anymore. :(

1

@ebest Yeah, that's why I decided to make a new chat room. To replace it.

1

Cool! I actually spent some time on a python chatroom a while ago that I also happened to name Pychat. I used the google sheets api to append messages to a sheet and update the screen.

1

its not working for me :/

2

@Aidan72 seems to be working fine
:/

1

@ebest the URL on the post is incorrect

2

@Aidan72 ohhhhh it's fixed now
sorry

1

Wow! This is amazing! Can you make a simpler version for me without all the hashing?

2

@Helixable The hashing is only for the password. It does not matter that much. Do you want a private server? And I'll make one without hashing.

1
1
1
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "main.py", line 75, in print_msgs
    c.send("dmsg", c.gr(), name, "Is here", message[1])
IndexError: list index out of range
1

Cool concept it wont work for me for some reason and it wont let me like it either so idk lol but it has a lot of code so im assuming it atleast kinda works

1

@ebest is that supposed to be laughter like something funny just happened or like angry laughter

1
password = "e53dd1b3db374e2b4b51b4401d9aea3b66be8717f3589a04cd27b537135f658167ba5ea0cf7d5ba7128e7491610b58d3f11dde8a3ee84abf7c2e425928fc3f67" #Chatmin

this seems like it shouldnt be visible

2

@Aidan72 It's a hash. It's not an actual password. oh, the comment is gone. I'm changing the password anyways.

1

@ebest oh ok lol I literally started learning python yesterday so idk anything lol

2

@Aidan72 lol it's ok thanks for the comment notice