Minetest Discord Webhook
This is a simple Minetest mod, that sends Messages to Discord via a Webhook, whenever a user joins or leaves, the server starts or shuts down and on every chat message. With this mod you can easily connect your Mintest game to your Discord server.
Install Minetest Mod
To install this mod, you have two options:
- Clone this repository into the
minetest/modsdirectory by executing
- Download this repository as an archive: https://github.com/activivan/mt-dcwebhook/archive/refs/heads/master.zip and extract the downloaded file into the
minetest/modsdirectory. Rename the folder to
Creating a Discord Webhook
- Go to your Discord server settings
- Go to "Integrations"
- Go to "Webhooks" and create a new Webhook
- Copy the URL of the Webhook to your clipboard
Configuring the mod
minetest.confand add your copied Discord Webhook URL like so:
dcwebhook_url = https://discord.com/api/webhooks/blablabla
- Optionally you can set the language of the messages with lang codes (currently available: English:
lang = de
Add mod to http_mods
As this mod uses the Minetest HTTP API to work, it has to be added to the
secure.http_mods property in the
minetest.conf file. Alternatively it can be added to
Note: Due to the need for the Minetest HTTP API, this mod only works on Minetest Servers built with cURL support
Copyright (c) 2021 activivan email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.