diff --git a/README.md b/README.md index 886f1ef..0f0302a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,10 @@ A Python implementation of the BitChat decentralized, peer-to-peer, encrypted ch * [Build](#build-sdist-and-wheel) - +## Installation +```Shell +pip install bleak>=0.22.3 cryptography>=44.0.0 lz4>=4.3.3 aioconsole>=0.8.1 pybloom-live>=4.0.0 +``` ## Usage ### Simple start @@ -38,7 +41,7 @@ General Commands * `/status` : Show connection info * `/clear` : Clear the screen * `/exit` : Quit BitChat -* `/q` : Alias for /exit +* `/q` : Alias for /exit Navigation Commands diff --git a/bitchat.py b/bitchat.py index a2bbf7c..439d905 100644 --- a/bitchat.py +++ b/bitchat.py @@ -1516,11 +1516,11 @@ async def handle_user_input(self, line: str): return # Commands - if line == "/help": + if line == "/help" or line == "/h" or line == "/": print_help() return - if line == "/exit": + if line == "/exit" or line == "/q": # Send leave notification if connected if self.client and self.client.is_connected: leave_packet = create_bitchat_packet( @@ -2843,4 +2843,4 @@ async def main(): try: asyncio.run(main()) except KeyboardInterrupt: - print("\n[+] Exiting...") \ No newline at end of file + print("\n[+] Exiting...")