Minetest Discord Webhook

Post Reply
User avatar
activivan
New member
Posts: 3
Joined: Fri Jan 01, 2021 19:39
GitHub: activivan
In-game: evivox activivan
Location: Germany
Contact:

Minetest Discord Webhook

by activivan » Post

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.

Image


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

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
6. Optionally you can set the language of the messages with lang codes (currently available: English: en, German: de, Russian: ru and Dutch: nl)

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.

c56
Member
Posts: 307
Joined: Wed Apr 21, 2021 03:05
GitHub: tigercoding56
In-game: bm5 or bemo5 also sell_her_on55

Re: Minetest Discord Webhook

by c56 » Post

does it send messages from the discord channel to chat ?
this is a signature not a place to post messages also if i could change my username i would change it to sell_her_on55

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests