Skip to content

Releases: 0n1udra/slime_server

v4.0.1 Bug update

17 Apr 01:41
Compare
Choose a tag to compare
v4.0.1 Bug update Pre-release
Pre-release
  • Fixed autosave loop feature not sending save-all command issue, due to missing await.
  • Fixed server IP and URL fetching and presentation. Also, able to check if URL (DDNS) works by pinging it.

v4.0 Big quality of life update!

07 Jan 02:50
Compare
Choose a tag to compare

Cleaned up all the commands and added some new useful ones.
There might still be some small bugs here and there, but hopefully, it's in good enough shape for public use.

  • New autosave feature, sends save-all command to server at specified interval.
    ?autosave command to enable/disable and change interval.
  • ?serverselect command allows you to have multiple servers and each with their own backup/restore.
  • ?whitelist command now able to add/remove/reload and more.
  • ?status command look overhaul, using embed now.
  • ?chatlog command shows only user chat lines from log, does not include whipsers.
  • ?links command shows some useful website URLs.
  • ?ip command shows server IP and/or URL.
  • ?serverreset command removed.
  • New slime_vars.py file, this will be the new home of all the important and changeable variables for the bot.
    No more need for bot_properties_file. I just edit slime_vars.py file directly.
  • Some command output/responses have new looks and some use emojis now!
  • Fixed output line ordering for commands that show log lines. Also, changed log output to send a new message per log line instead of it all in one line, which has a character limit. IDK why I didn't do this in the first place.
  • Changed token file to .token extension.
  • Moved a lot of code around, changed spacing to fit PEP8 guidelines a bit more, and added and touched up some docstrings.
  • Changed and cleaned up run_bot.py file and updated it's arguments.

And a lot more smaller things here and there or just stuff that I forgot about.
Also, I am planning on making it so you can run this without using it as a Discord bot. Able to run it just as a script that you can interact with in the console.

v3.2

05 Nov 20:35
Compare
Choose a tag to compare
v3.2 Pre-release
Pre-release

Server and world restore fix. wasn't passing in right argument to restore function, also needed to add os.chdir() so it could work propertly.
Also fixed other minor things. But the restore functions needed to be fixed asap.

v3.1.1 ?log fix

09 Oct 21:12
Compare
Choose a tag to compare
v3.1.1 ?log fix Pre-release
Pre-release

Fix ?log command returning false.
See commit 3f17e79 for more.

v3.1

04 Oct 01:23
Compare
Choose a tag to compare
v3.1 Pre-release
Pre-release

Bug update.
Tweaked how mc_status worked, so it doesn't mistake older log commands.
Fixed how ?start and ?stop functions check server active status beforehand.
Updated how ?version keeps track of current server version. Also fixed mix up with Minecraft website url and Minecraft ip variables.

v3.0 Added subprocess

01 Oct 09:09
Compare
Choose a tag to compare
v3.0 Added subprocess Pre-release
Pre-release

Tmux not required now if you're not using RCON. Can now start Minecraft server as subprocess with Popen(), uses stdin.write() to send commands to the server, and reads latest.log file for output. I might work out the code to read the output directly with stdout, but for now it's easier to use the log.
run_bot.py, run argument can't start the server, you have to start the server with ?start Discord command.
New use_subprocess boolean added. You can run the bot in Tmux and still run the server as a subprocess, just set use_tmux and use_subprocess both to True.
I have a feeling there's gonna be plenty of bugs to find, please be patient.

v2.5 Fount latest.log!

30 Sep 18:46
Compare
Choose a tag to compare
Pre-release

The I am stupid for not noticing the server has the latest.log file. Before I was piping out server output to a .txt file because I thought the server logs were unreadable or something, but I was wrong... This is a much better option.
Also added an optional 'now' argument for ?stop and ?restart, so you don't have to wait for the 15s. ?stop now or ?restart now.
Added ?version and ?latest version command (?v, ?lv), which will show current server version or get latest version from Minecraft website.
Moved around server_functions.py functions for better readability.
Also updated some arguments for run_boy.py for hopefully less confusion with tmux and attach arg.

v2.4 Classing

30 Sep 03:27
dc6520a
Compare
Choose a tag to compare
v2.4 Classing Pre-release
Pre-release

Cog update. Using discord.ext commands.Cog to re-organize server commands.
Moved some commands under different and new categories, easier reading, and hopefully editing especially if you have code folding features in your editor of choice.
Also implemented docstrings for Discord commands. I started using Google's docstring convention, but it's not 100% by convention, because the docstrings are used in Discord ?help command, so I added the information with the end-user in mind not particularly for developers.
I re-enabled the Discord.py defautl ?help command and it's features like getting help for a specific command or category (?help delaykill, ?help Permissions), and moved the help page that was using embed and reaction buttons to navigate to ?help2.

v2.3 Switched to asyncio.sleep()

29 Sep 21:09
Compare
Choose a tag to compare
Pre-release

asyncio.sleep() update.
changed time.sleep() functions to await asyncio.sleep(). Because time.sleep() pauses the whole bot and you couldn't send more commands to it until it was over. My bad, kind of a big deal for some of the commands like ?delaykill!
Also added back some simple shorter aliases for commonly used commands and added some new ones like ?pl for player list and ?c for serrver command.

v2.2

27 Sep 05:41
Compare
Choose a tag to compare
v2.2 Pre-release
Pre-release

Quality update for reading code. Code isn't formatted to a convention, but I made it a bit cleaner and hopefully easier to understand.
Also added new file, run_boy.py script. Sadly you still need to edit the variables in server_functions.py.
run_bot.py takes arguments to setup and run Discord bot and/or Minecraft server whether you're using Tmux or RCON.
read the help page with 'python3 run_boy.py help'.