mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-17 04:36:57 +00:00
768 B
768 B
This is the code to check if a simplex link is valid and joinable. Steps to make the script work:
- Download the simplex-chat cli client. You can follow this guide https://simplex.chat/docs/cli.html#download-chat-client.
- Create an account for the bot -> simplex-chat-ubuntu-22_04-x86-64 -d $HOME/.simplex/simplep-bot -x Use -x flag to use tor.
- Create a virtual environment and install websockets module
python3 -m venv my_venv source my_venv/bin/activate pip install websockets - Start a websocket(chat server) -> simplex-chat-ubuntu-22_04-x86-64 -x -p 3030 -d simplep-bot You can use any port number. Make sure to change the port number in the script as well. Here we are using port 3030.
- Call the is_simplex_link_valid(
link
) function.