Share your repls and programming experiences

← Back to all posts
Pychat
ebest (590)

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.


V: 2.0
Added about 99 admin commands. Just ask for an account. I'll also need your credit card number, its expiration date, and the numbers on the back. And give me your email (Actually).


V: 3.0
Added a massive amount of user verification. Well, not a lot, but anyways...


V: 3.1
Yay! Added leave detection (THAT WORKS)

-Ebest

Commentshotnewtop
HarperframeInc (240)

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

ebest (590)

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

rediar (135)

@ebest wow! can I have an account? I'm working on yet another project that has live chess

ebest (590)

@rediar Username and password?

rediar (135)

@ebest discord you it later

ebest (590)

@rediar just comment it then delete the comment quickly. The comment will not show up to anyone but it will show up in my mailbox.

Wow your chat-online is a copy.

rediar (135)

@ebest You mean Chess Online? That file is empty, because the tutorial I found was uhh in Node.js, and live chat is mat’s though it doesn’t work because recaptcha.

ebest (590)

@rediar ok your account is added

ebest (590)

@rediar You're welcome, comrade doe

rediar (135)

@ebest err problem comrade eric, when I type in 'rediar' takes me straight to lobby without asking for password, also have a good tutorial for this kind of thing?

ebest (590)

@rediar er are you not "Prussia"?

rediar (135)

@ebest oh oof, I'm just stupid

ebest (590)

@rediar can I help the chatbot?

rediar (135)

@ebest yeah sure, just now I was updating the chess features, also how do you reply so fast in a weird time?
https://repl.it/live/pTpGx3PBPnGRvg

rediar (135)

@ebest hey sorry, multiplayer crashed, it just said "this plugin crashed". Probably because chen tim is making some bugs right now

ebest (590)

@rediar oh right I saw that once

ebest (590)

@GameMaster1928 LOL doesn't work anymore. :(

GameMaster1928 (41)

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

ebest (590)

@GameMaster1928 huh

not so working chatroom

GameMaster1928 (41)

@ebest
I kinda deleted it because I was trying to make my site better but deleted the whole folder lol

ebest (590)

@GameMaster1928 no the other one
the one by pyalias
hey check out my chatroom it's fun

evanzimmerman (29)

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.

Aidan72 (6)

its not working for me :/

ebest (590)

@Aidan72 seems to be working fine
:/

Aidan72 (6)

@ebest the URL on the post is incorrect

ebest (590)

@Aidan72 ohhhhh it's fixed now
sorry

ebest (590)

@Aidan72 check it out now and all the things I've added.

Helixable (5)

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

ebest (590)

@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.

Aidan72 (6)
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
Aidan72 (6)

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

Aidan72 (6)

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

Aidan72 (6)
password = "e53dd1b3db374e2b4b51b4401d9aea3b66be8717f3589a04cd27b537135f658167ba5ea0cf7d5ba7128e7491610b58d3f11dde8a3ee84abf7c2e425928fc3f67" #Chatmin

this seems like it shouldnt be visible

ebest (590)

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

Aidan72 (6)

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

ebest (590)

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