From a982ee0525cf7dd4e2fb4a1e595cc12ade1e4e56 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Tue, 22 Jan 2019 19:13:30 +0530 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 3b75944..a0eca76 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ # minetest-telegram-bridge +# Usage + ++ Install `python3`, `flask`, `python-telegram-bot` ++ `cd` ++ `git clone https://git.webionite.com/ceda_ei/minetest-telegram-bridge` ++ `ln -s ~/minetest-telegram-bridge/chat_mod ~/..minetest/mods/chat_mod` ++ Enable the mod in `world.mt` ++ `cd minetest-telegram-bridge/bot` ++ Copy `sample.config.py` to `config.py` and edit. ++ `python3 bot.py &` ++ `export FLASK_APP=server.py` ++ `export FLASK_ENV=production` ++ `flask run -p 9876` + + +# Configuration + +To use a different port, change the respective config in `config.py` and add `chat_server_port = PORT` in `minecraft.conf` and run `flask run -p PORT` instead of the last step.