raynieport / mconbot Goto Github PK
View Code? Open in Web Editor NEWA bot to interact with your Minecraft server - from Discord!
License: Other
A bot to interact with your Minecraft server - from Discord!
License: Other
First off, thank you so much for creating this bot! It was exactly what I was looking for to remotely control my mc server.
However, although commands like "start, stop, weather clear, and say" all work perfectly... "list" always returns back
Even when there are definitely players online.
Do you ever have this problem? When I do the command in the server terminal it works exactly how you'd expect.
So I'm confused why rcon doesn't see them. I have the repo for my bot set to public if you want to see how I changed your code. here
Extra info: I'm not running this in a docker and I'm running a forge 1.7.10 modded server.
For whatever reason, the bot no longer seems to function. Not sure if this is due to some breaking change in the Discord API or an update to the discord.py library. I will look into this further if I have some free time.
Hi!
I'm encountering an issue with the docker version of mconBot. I've followed the process for setting up a bot and integrating it with a channel. When running >hi
and >help
it responds appropriately, but when I run a command that would query my server, it returns Connection from the bot to the server failed
.
When I check the docker logs, I see
# docker logs mconbot
[discord_user#1234]: list
Connection from the bot to the server failed.
Port 25575 is definitely open and I have the correct password defined in the environment file.
Running a shell on the container and executing mconbot from there seems to work fine
# docker exec -it mconbot /bin/sh
# mcrcon --password $password 10.1.10.100
> list
There are 0 of a max of 4 players online:
Is there anything else I can test here to identify where the issue may be coming from?
could you add some sort of command like >cmd (some command other than the default list)
?
I run a spigot server and since that also means i use plugins, i would like to use commands from those without having to add all of the commands to commands.json
of course this feature would be restricted to admins since it enables use of any command
I love this bot as it does just about everything I need it to. Although, the only thing I've been trying to figure out how to do is be able to use the bot to execute the bat file/jar for the server via discord and suspend/shut down the server when no players are online after a certain amount of time.
Your bot seems pretty good despite a couple missing features.
i looked at the python library you were using for mcrcon and it doesnt seem you can specify a port, so idk if this is possible
i would attempt to fix it myself, but the only class in college ive had on python was more of the data science route and not normal programming.
I have my main server setup on a physical server (D1) where i want to have the bot running on a different physical server (D2)
that physical server (D1) has a minecraft server and a velocity proxy. while the 2nd server (D2) has significantly less processing power, so i try to host smaller pieces of software on it.
I want to be able to specify the port that i use with the bot since i was planning on using the bot, not on the same physical server (not D1, but D2 in this case). this would also help if i wanted to setup multiple instances of the bot for different servers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.