2.6 KiB
2.6 KiB
Manual setup
These instructions describe how to install and run the bridge manually from a clone of this repository.
Minimum requirements
- Python 3.7
- Node 16.13 (not yet tested with earlier versions)
- postgresql 11 or sqlite3
- A KakaoTalk account on a smartphone (Android or iOS)
Optional requirements
- Native dependencies for end-to-bridge: https://docs.mau.fi/bridges/python/optional-dependencies.html#all-python-bridges
Initial setup
node-kakao module
cd
to thenode
directory and runnpm install
- Copy
node/example-config.json
tonode/config.json
- Edit
node/config.json
with desired settings (see node/README.md for details)
Bridge module
cd
to the repository root and create a Python virtual environment withpython3 -m venv .venv
, and enter it withsource .venv/bin/activate
- Install Python requirements:
pip install -Ur requirements.txt
for base functionalitypip install -Ur optional-requirements.txt
for end-to-bridge encryption and metrics- Note that end-to-bridge encryption requires some native dependencies. For details, see https://docs.mau.fi/bridges/python/optional-dependencies.html#all-python-bridges
- Copy
matrix_appservice_kakaotalk/example-config.yaml
toconfig.yaml
, and update it with the proper settings to connect to your homeserver- In particular, be sure to set the
rpc.connection
settings to use the socket you chose innode/config.json
- If using Postgres as your database, create a new database that can be accessed via the URI you set for it in
appservice.database
- In particular, be sure to set the
- Run
python -m matrix_appservice_kakaotalk -g
to generate an appservice registration file, and update your homeserver configuration to accept it
Running manually
- In the
node
directory, launch the node-kakao module withnode src/main.js
- In the project root directory, run the bridge module with
python -m matrix_appservice_kakaotalk
- Start a chat with the bot and use the
login <email>
command to sync your KakaoTalk account- Note that on first use, you must enter a verification code on a smartphone version of KakaoTalk in order for the login to complete
systemd
Coming soon!
Upgrading
Simply git pull
or git rebase
the latest changes and rerun any installation commands (npm install
, pip install -Ur ...
).
Docker
Coming soon!