Code Monkey home page Code Monkey logo

termchat's Introduction

termchat

Chat through the terminal with hack.chat

PythonVer PyPIplatform license

Usage

termchat_1.png

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

Install

pip3 install termchat

What's Special

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

Dependencies

  • Python 3
  • websocket-client

Todo

  • 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

Special Thanks

Hack.chat

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.

Hackchat Chatbot Library

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.

Interface

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.

Check out these projects because without them this would not have been possible 🎉

Donate

If this project helped you in any way and you feel like supporting me

Donate Donate

BTC: 1PSVVs6EnhdRGhUFb6Dz6EGWKKyHe3xACe
ETH: 0x585c4e1aa22d9Cc92d1a6b3fAe0c4a5274b5a884
LTC: Lf3SDjkck7iqy5TGn3wqzNvf5LL97JNhGk

License

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.

termchat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

termchat's Issues

Special characters are entered when resizing the window

Issue Label:

  • Bug
  • New feature
  • Enhancement

Description:

When I resize the terminal window, ƚ characters are entered.

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
10.12.6

Cannot enter Chinese characters

Issue Label:

  • Bug
  • New feature
  • Enhancement

Description:

When using hackchat, one can enter Chinese characters, however, when using termchat, words like '你好' in Chinese would turn out to be 'ä½ å¥½'.
The shell I am using is zsh; the command-line interface I am using is hyper.
I also tried it with macOS default terminal.

Also Russian!– Perhaps it is you did not add utf-8?

OS and OS version:

  • macOS
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.