Slack to Minecraft chat gateway
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
.ruby-version
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
config.ru
gateway.gif
screenshot.png
wither.rb

README.md

pickaxe.club chat

A Slack to Minecraft chat gateway

In action:

Install

  • Push this to Heroku
  • Point Slack outgoing webhooks to your Heroku URL
  • Set SLACK_URL as Slack incoming webhook URL
  • Make sure RCON_IP, RCON_PASSWORD are set in heroku configuration to your server's IP/hostname and RCON password. If RCON_PORT is not set it uses the default (25575).

Run the following on your server hosting (in a screen, and make sure to replace your Heroku URL and your log directory location):

tail -F /PATH_TO_MINECRAFT_INSTALL/logs/latest.log | grep --line-buffered ": <" | while read x ; do echo -ne $x | curl -X POST -d @- https://YOUR_HEROKU_URL.herokuapp.com/minecraft/hook ; done

TODO

  • Blurgh post

License

MIT. See LICENSE.