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.
Links
Getting started
Install Minetest Mod
To install this mod, you have three options:
- Clone the repository of this mod into the minetest/mods directory by executing
Code: Select all
git clone https://github.com/activivan/mt-dcwebhook.git
- Download the mod as an Archive: https://github.com/activivan/mt-dcwebho ... master.zip and extract the downloaded archive into the minetest/mods directory. Rename the folder to dcwebhook
Creating a Discord Webhook
1. Go to your Discord server settings
2. Go to "Integrations"
3. Go to "Webhooks" and create a new Webhook
4. Copy the URL of the Webhook to your clipboard
Configuring the mod
5. Open minetest.conf and add your copied Discord Webhook URL like so:
Code: Select all
dcwebhook_url = https://discord.com/api/webhooks/blablabla
Code: Select all
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 secure.trusted_mods.
Note: Due to the need for the Minetest HTTP API, this mod only works on Minetest Servers built with cURL support
License
MIT License
Copyright (c) 2021 activivan <activivan.studios@gmail.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.