![minecraft tv head command minecraft tv head command](https://static.planetminecraft.com/files/resource_media/preview/1528/tvhead9127219_minecraft_skin-9127219.jpg)
PS C:\Users.\Desktop\testingbot> node index.js
![minecraft tv head command minecraft tv head command](https://static01.nyt.com/images/2016/04/17/magazine/17mag-minecraft-promo/17mag-minecraft-promo-facebookJumbo-v2.gif)
I have a problem, on me it is giving a request problem anyone knows what this is? In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.Īnd I'm sure that th informations are correct
![minecraft tv head command minecraft tv head command](https://i.pinimg.com/236x/e7/ec/6b/e7ec6b39a47e47cdd62ba59937dfc64b.jpg)
(node:11996) DeprecationWarning: Unhandled promise rejections are deprecated. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with. (node:11996) UnhandledPromiseRejectionWarning: Unhandled promise rejection. (node:11996) UnhandledPromiseRejectionWarning: Error: Incorrect login details were provided.Īt. (C:\Users\asu\node_modules\discord.js\src\client\ClientManager.js:48:41)Īt WebSocketConnection.emit (events.js:198:13)Īt WebSocketConnection.onClose (C:\Users\asu\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:390:10)Īt WebSocket.onClose (C:\Users\asu\node_modules\ws\lib\event-target.js:124:16)Īt WebSocket.emitClose (C:\Users\asu\node_modules\ws\lib\websocket.js:191:10)Īt TLSSocket.socketOnClose (C:\Users\asu\node_modules\ws\lib\websocket.js:850:15) Credit to The MG#8238 on Discord for contributing to this scriptĬ:\Users\asu\Desktop\DiscordBot>node mc-server.js '192.168.0.1')Ĭonst SERVER_PORT = 25565 // Put your minecraft server port here (25565 is the default)Ĭonst STATUS_COMMAND = '.status' // Command to trigger server status messageĬonst STATUS_ERROR = 'Error getting Minecraft server status.' // Check your terminal when you see thisĬonst STATUS_ONLINE = '**Minecraft** server is **online** - ' Ĭonst STATUS_PLAYERS = '**', SERVER_PORT ) IMPORTANT: You need to run "npm i (without quotes) in your terminal before executing this scriptĬonst SERVER_ADDRESS = '0.0.0.0' // Put your minecraft server IP or hostname here (e.g. Const util = require ( 'minecraft-server-util' ) Ĭonst Discord = require ( 'discord.js' ) Ĭonst client = new Discord.