Notice:
Chatting between Minetest and Discord. There is support for some commands.
NEW BETA version!
Very simple and fast installation!
- Install bot in your Discord server
- Install mod https://github.com/googolgl/lp_api
- configure lp_api.channel_id (Rightclick on the Discord text channel you want the bot to interact with and press "Copy ID", and then insert value in this)
Start testing!
Old Version
License of source code: AGPL v.3
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>.
!privs <player> - Show privs of player.
You can disable this by setting "SUPPORT_CMD = false" in "~/mods/http_api/subscriber/init.lua"
Installing:
1. Download: https://bitbucket.org/g00g01/mtdbot/downloads/?tab=downloads
2. Unzip mtdBot.zip > ~/mtdBot
3. Copy ~/mtdBot/minetest/mods/http_api > ~/minetest/mods/http_api
4. Add this mods to trusted_mods.
--- Open : /minetest/minetest.confg
--- Add : secure.http_mods = subscriber,publisher
5. Activate http_api mod in menu
6. Open https://discordapp.com/developers/applications/me
--- Click "New App"
--- Add "App Name" (Example: minetest-bot)
--- Push "Create App"
--- Push "Create a Bot User"
--- "Token:click to reveal", this is your TokenBot
--- Push "Save changes"
Usage:
Run in console
- Code: Select all
minetest --verbose
Edit config.ini and Run server:
- Code: Select all
mtdBot
Links:
Source code on Bitbucket:
- https://bitbucket.org/g00g01/mtdbot
Discord:
- https://discordapp.com/