/mineflayer_with_discord.js

A basic usage for mineflayer and discord.js

Primary LanguageJavaScript

mineflayer_with_discord.js

This project has been made with mineflayer and discord.js

Installation

Requirements

You need git on your machine, node.js (8 or higher) and npm(5 or higher).

Setup

git clone the repo and go to the folder. Runs the commande npm install.

Start

To start the bot you need an opened lan server on minecraft or create a server.

After that, run this command :

$ HOST=<server ip, default = localhost> PORT=<server port> node client.js  

The discord command to send a message into minecraft is :

mineflayer <your message>

You can change the username of the bot on minecraft via config.json.example (change name of the fill by config.json).