usage: termchat [-h] [-r ROOM] [-n NICK] [-v]
Chat through the terminal with hack.chat
optional arguments:
-h, --help show this help message and exit
-r ROOM, --room ROOM Choose the name of the chatroom to enter
-n NICK, --nick NICK Set the username for others to see
-v, --version Display the current version of tchat
pip3 install termchat
There are a few things that is awesome about this project and hack.chat in general the first is they are both open source!
-
Open source is love.
-
hack.chat already never holds onto these chats unlike other services such as Skype as soon as all parties leave the chat all chat history is never again obtainable
-
No one needs to sign up for an account, which is always a plus!
-
Can be used from the terminal, so no web browser is necessary!
-
By utilizing a client to interact with hack.chat we can add things like encryption (soon to come)
-
Python and the curses interface go together like two peas in a pod
- Python 3
- websocket-client
- Add end to end encryption
- Check for an active connection status before starting the application
- Check if message went through and the ip hasn't been rate limited
- If user has left add a message to the chat from System with this info
Without the hack.chat project by AndrewBelt deployed here this project would have been a lot more complicated as most of the heavy lifting is done by it.
The Hchat.py file was largely based on this project by gkbrk which was modified so that it could be used without the need for a bot.
The interface in this project was largely based on this project by mathiasbc which was modified to integrate with the hackchat library rather than the slack client.
If this project helped you in any way and you feel like supporting me
MIT License
Copyright (c) 2017 Alex Epstein
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.