RayNieport / mconBot

A bot to interact with your Minecraft server - from Discord!
Other
19 stars 4 forks source link

Feature Request: Remote Start & Shutdown #8

Open MadDog443 opened 1 year ago

MadDog443 commented 1 year ago

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.

MadDog443 commented 1 year ago

Update, I found a bot that supposedly does this and is also made in python, but the drawback would be running 2 separate bots which could cause issues. Sauce: Remote Minecraft Server Start from Discord

RayNieport commented 1 year ago

Nice idea! That should be fairly easy to integrate. The repo you linked to is pretty short and sweet, and MIT licensed. If I have some free time I'll look into adding support.

Only caveat is that I don't think this would work if the bot is running inside a Docker container.

MadDog443 commented 1 year ago

Ehhh, maybe, but I'm going to use a batch file to start mconBot. Also, I converted your logo to an .ico file so it's easier to use for shortcuts etc, feel free to drop it into the images folder. mconBot.ico

RayNieport commented 1 year ago

Well, I worked on adding support for this but now I can't get the bot to work at all (not even a response using >hi or >help). This is the case even when I run the unmodified version of the code. Maybe Discord broke something on the back end or in the API. To be honest I've been pretty busy elsewhere and don't use this bot a ton anymore, but if I have some more free time I'll try to get it working again.

Have you noticed any issues with your instance of the bot?

MadDog443 commented 1 year ago

Noticed the same issue. But I also have a lot of issues getting python running properly on windows, it doesn't like to install nicely when you aren't using an admin account etc.