at require (internal/modules/cjs/helpers.js:25:18)
If you're unsure on how to create a bot application.
I sent you a friend req on discord aswell from PoopyPustak#8269. at WebSocketConnection.onClose (C:\Users\asu\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:390:10) at Module.load (internal/modules/cjs/loader.js:1000:32) You can install them by running this in the same folder as the script: Thanks for replying so soon! Or just send me a picture of what your terminal looks like after you start up the bot. You type node yourscript.js in a terminal or command prompt window in the folder where your script is. I got an email because I am subscribed. Example: setting the value to. The updater will download all the dependancies for the bot and update you to the latest version. Do I need at script/plugin on the server? at internal/main/run_main_module.js:18:47 Its really helpful because the modpack we play on takes ages to load and the bot just lets you quickly check whos online. @Peter537 - Sorry but helping you get a bot up and running is outside of the scope of what I'm prepared to do in the comments here. at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) If you have any issues during installation, join the support server on Discord. '192.168.0.1'), // Put your minecraft server port here (25565 is the default), 'Error getting Minecraft server status...', '**Minecraft** server is **online** - ', // {ip} and {port} will show server ip and port from above, // Do not edit below this line unless you know what you're doing, // Listen for messages and trigger commands, // Credit to The MG#8238 on Discord for improvements to this script. status and get your server info.
It isn't going to update instantly. at Function.Module._load (internal/modules/cjs/loader.js:585:3), This script requires 2 npm modules, they are request and discord.js. If nothing happens, download Xcode and try again. A Minecraft bot for Discord with lots of commands such as player skins, name history.
Now it says that there is 1, and is stuck at 1. and I know that I need to replace {online} with data.onlinePlayers but I dont know how to replace it. status - Get the status of the watched MC server, mc! Whether or not to run maintenance mode detection. A simple Discord bot that displays the status of a Minecraft server in the sidebar. Learn more, We use analytics cookies to understand how you use our websites so we can make them better, e.g. Any ideas for this error? MCStats is a simple bot to fetch Minecraft Server and Player information. at Function.Module._load (internal/modules/cjs/loader.js:562:25) throw err; Its just what should I type to get it working? We use essential cookies to perform essential website functions, e.g. Ye I already have downloaded everything. Please help. The Minecraft server IP to display the status for. For both the quick reply and what I was looking for xD. Python 3.7+ is recommended. edit: never mind I saw the link you gave to someone else, tho what module should I install for the https://gist.github.com/vegeta897/002b5705776e468d1f0fa19fc9d3c116 ? Im trying to make this for my friend's server but they said they don't feel comfortable giving the ip, If you have an address for the server, you can resolve it to get the IP. status SERVER_IP or a default server can be set with mc! Hey can you help me how this works?
PS C:\Users...\Desktop\testingbot> node index.js "); ohhh - didnt see all of it, but maybe the last thing u said is right. You could change line 23 to the following: is there a way for it to show up on the bot as a game status? We use essential cookies to perform essential website functions, e.g. Does it have permission to see the channel you're testing in? You said you didn't make any changes to my code, but my code doesn't log "Bot is online."
@Peter537 - Just in your server, or is it actually online with the green circle? Is the bot online in your server? I am trying to make the same thing onto the bots custom status but I always get "{online} are playing!" (node:11996) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. to resolve any issues running this. they're used to log you in. Home; Server; About; Login .
This is the how the bot logs into Discord, which you get from a bot application. MCStats will show a players information with a player head and skin preview. status and get your server info. User profiles, badges, verified accounts and verified custom role. Would you help me out? is there a way to convert the code to python ?
Try using this: https://whatismyipaddress.com/hostname-ip, I tried it and it always says the server is offline when it is on and it is not showing any correct data. player PLAYER_NAME - Get username and skin info about a player, mc! You need to keep the terminal window open to keep the bot running. I can see it doenst recognize it, btw where should I give u the gist? One thing you can do is have the bot edit a message in a channel on server to list all the current members online on the mc server. @Elmani335 - If Discord.js is telling you your token is invalid, then it's invalid. If nothing happens, download GitHub Desktop and try again.