First, as per usual: clone this repository to wherever you want to work. You want to work in this folder, with the contents of the repository.
If you run setup.sh and have python installed, it should:
- Create a python venv called
.venvin the workspace directory - Install
requestsinto the venv - Run
setup.py(input ofchat_passneeded) - Delete itself.
This should set everything up, including your chat token and user info, which will be stored in config.json.
When you need to update these, just run setup.py again.
Make sure to have from chat import ChatAPI at the beginning of every python file. This will give you the ChatAPI class, which you want to make an instance of.
There is a file called chatAPI.code-snippets. If you prefer to not use the functions I have made and instead want just the raw API code, this file has snippets containing exactly that; just uncomment the contents.