minetest-telegram-bridge/README.md

24 lines
852 B
Markdown
Raw Permalink Normal View History

2019-01-22 09:17:05 +01:00
# minetest-telegram-bridge
2019-01-22 14:43:30 +01:00
# Usage
+ Install `python3`, `flask`, `python-telegram-bot`
+ `cd`
+ `git clone https://git.webionite.com/ceda_ei/minetest-telegram-bridge`
2019-01-22 14:44:23 +01:00
+ `ln -s ~/minetest-telegram-bridge/chat_mod ~/.minetest/mods/chat_mod`
2019-01-22 19:45:52 +01:00
+ Add mod to `secure.http_mods`.
+ Add this line if `secure.http_mods` doesn't exist. `secure.http_mods = chat_mod`
2019-01-22 14:43:30 +01:00
+ 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`
2019-01-28 13:21:00 +01:00
+ Start the minetest server via `minetest [params] |& python3 pipe_in.py`
2019-01-22 14:43:30 +01:00
# 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.