License of source code: AGPL v.3
Notice:
Reprints messages from the general chat Minetest to Discord and back.
Support command in the Discord:
!status - Server’s Minetest version, time the server is running in seconds list of connected players and the message of the day.
!msg <player> <message> - Send a private message <message> to <player>.
!ban <player name> - Ban IP of player.
!unban <player name/IP address> - Remove ban of player with the specified name or IP address.
!kick <player name> <reason> - Kicks the player with the name <player name>. Optionally a <reason> can be provided in text-form. This text is also shown to the kicked player.
!setpassword <player> <passwovrd> - Sets password of <player> to <password>.
!grant <player> <privilege> - Gives the <privilege> to <player>.
!revoke <player> <privilege> - Takes away a <privilege> from <player>.
You can disable this by setting "SUPPORT_CMD = false" in "~/mods/http_api/subscriber/init.lua"
Installing:
Download: Windows 386/x64
or
Download: Linux 386/x64
Unzip and Install "http_api" minetest modpack.
Usage:
Add your bot.
https://discordapp.com/developers/applications/me
Run on the server:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
mtdBot -t <TokenBot> -c <ChannelID>
Links:
Source code on Bitbucket:
- https://bitbucket.org/g00g01/mtdbot
Discord:
- https://discordapp.com/