Go to file
Ceda EI 1632bbfbe2 Fix typo 2019-01-22 19:14:23 +05:30
bot Complete server.py 2019-01-22 17:46:00 +05:30
chat_mod Fail safely if not in secure.http_mods or trusted_mods 2019-01-22 19:05:04 +05:30
.gitignore Complete bot.py. Add groups to config. Change /post to POST. 2019-01-22 16:54:57 +05:30
LICENSE Initial commit 2019-01-22 08:17:05 +00:00
README.md Fix typo 2019-01-22 19:14:23 +05:30

README.md

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.