Day 3
Today I added the ability to execute commands directly from the server, such as ban and kick, giving the server moderation control over the chat.
I also fixed an issue where receiving a message while typing would interrupt the input. After searching the entire internet, I finally found the holy grail: prompt_toolkit. Because of that, I can put GUI development on hold for now.
The biggest challenge today was figuring out why I was getting a CMD-related error when starting the server with prompt_toolkit. It turns out that prompt_toolkit doesn’t work properly with PyCharm’s default console, so I had to enable the “Emulate terminal in output console” option.
My plans for tomorrow are:
Finish the command system (if I can think of any more useful commands).
Take a look at py2exe so I can generate an .exe file from the Python client.
Try to fix a bug where the client doesn’t properly stop after being banned, kicked, or disconnected.
See you tomorrow!!!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.