Skip to content

Releases: 0n1udra/slime_server

v9.0 The big class-ification revamp update!

17 Sep 19:12
Compare
Choose a tag to compare

Made the bot more OOP structured.
...tbc....

v6.0 Discord 2.0 Update!

13 Sep 18:44
Compare
Choose a tag to compare

Moved over to Discord.py 2.0 now. No longer need discord-components module.

  • Now able to download server log files. Uses discord's special file embed. Will also unzip any .gz files selected before sending.
  • New showlog argument for [runt_bot.py](http://runt_bot.py/). Uses watch and tail commands.
  • Able to filter chat logs now with keywords. E.g. ?chatlog minecraft is awesome. Searches latest.log for matching user chat lines containing 'minecraft is awesome'. Can still specificy # of lines, e.g. ?chatlog 5 frog.
  • Updated how ?players command works. By default, will now just show player names instead of fetching their coordinatess (which takes a long time, esp if u have a lot of players). Now use ?p location or ?pl to show all player's online and their coordinates.
  • Updated and added new commands to command_info.csv file for ?help2 command.
  • Can customize wait time after booting mc server before invoking status command.
  • If using tmux can now specify which pane to use for mc server and bot.
  • Fixed ?timeoff command not working, doDayLightCycle was misspelled in the code.
  • Fixed getting server IP using RCON, and some other RCON related stuff.
  • Fixed no longer import mctools unless use_rcon = True in slime_vars.py file.

And a bunch of other stuff....
Also, pls no looky in my commit history! It is unholy. I do not know how to use git correctly.....:)

v5.5 The Log Update

12 Apr 22:56
Compare
Choose a tag to compare
  • New ?connectionlog or ?clog command. Shows server log lines relating to player connection/disconnection.
  • Updated how log commands are presented in Discord. Commands like serverlog, connectionlog, chatlog, botlog will be formatted in Discord's markdown to make it easier to read. No more ugly code block markdown for log lines. (33cc194)
    • Each log command has been updated to utilize Discord's markdown to make log lines easier to read.
  • For Linux users, you don't have to manually set username. For other systems, set user and path variables manually :P. (9b03deb)
  • Can now set how long to wait to check server status after sending launch command, set in slime_vars with wait_for_launch integer (second). (dc68b4d)
  • Fixed issue where chat log showing in wrong order

v5.4 Important QoS and bug fixes update.

10 Apr 22:08
Compare
Choose a tag to compare
  • Tweaked how format_args() work (8458266)
  • I had an issue where if the servers latest.log exists but is empty, the bot will freeze when trying to read it. (7dc64e6)
  • New command_buffer_time variable in slime_vars. You can adjust how much to wait in between sending command to MC server and reading the logs for the output. Added in 310c3b0, and adjusted in 800cad8.
    • Depending on factors like PC specs, MC server type (PaperMC, Vanilla, Forge, etc), and/or how many mods, the time it takes to receive the command and having the output show up in logs can vary.
  • Fixed chatlog() function, also updated how it looks in discord. (0c69a85, bd07d3d)
  • New status_checker_command variable in slime_vars, can now set what command to use to check server status. (50253d4)
  • Tweaked server_status() function. (15de68b)
  • Moved code portions pertaining to parsing log lines for banlist() function to said function instead of keeping it inside of server_log() func. (7b4a682)
  • Added/Updated some docstrings/comments.

v5.3 QoS and bug fix update

04 Apr 08:00
Compare
Choose a tag to compare
  • Now can update vanilla and papermc servers, using their API to get direct download URL.
  • Tweaked how server_log function works.
  • Updated slime vars file, added, removed and moved stuff around.
  • Added some time so Minecraft server receiving command has more time to log it before bot attempts to read log.
  • Fixed imports. No more * imports (although imports lines still (I don't like multi-lined imports....))
  • And probably a lot of other stuff I forgot, lmk if anything else breaks.

v5.1 Fixed tmux issue

20 Dec 23:04
57c0135
Compare
Choose a tag to compare
  • My ~/.tmux.conf had set -g base-index 1 in it, which meant I scripted the code to work with my specific config.... my bad :)
    I updated the code so it should work with default a default tmux config.
  • I also added a pyenv_activate_command variable to slime_vars.py to activate a python env before starting the Discord bot (if using one). Set this to None if not using one.

v5.0 BUTTONS! Control panels, and more!

05 Dec 04:23
Compare
Choose a tag to compare

Using discord-components Buttons and Select functionality makes getting around and general usage of bot much easier!

  • New control panel! Lots of buttons for: changing the weather/time, seeing players list (now shows coordinates for each player), quickly creating new world or server backup, and of course start/stop and rebooting server. Repo homepage has images.
  • New player panel. You can now select from a list of online players and use buttons for quick actions like: kill, gamemode change, op, ban, kick, etc.
  • New Teleport panel. Two drop down lists to select target(s) and destination, and a Teleport and Return button. Return button lets you return teleported player to orignal location (be careful when teleporting multiple people at once, it does NOT save each one's location before teleporting), return button only really useful for single player teleporting.
  • New restore world and server backups panel. Select from list of backups to either restore or delete backup.
  • ?tp command update, now able to take in coordinates. e.g. ?tp frogo 10 64 148
  • Other small QoS changes.

v4.1.2 Minor changes

02 Dec 02:24
Compare
Choose a tag to compare
  • Removed redundant Fetching Server Stats... message from serverstatus command.
  • Any tmux related functionality now uses tmux_session_name variable, which can be changed in slime_vars.py.
  • Removed extra_functions.py file and contents to server_functions.py.

v4.1.1 Small fixes

04 Jul 23:29
Compare
Choose a tag to compare
  • Changed backup/restore command aliases scheme to be a bit less confusing.
  • Updated some Discord command help/usage messages.
  • Updated code docstring style to be more uniform and simpler.

v4.1 RCON fixes, server_command() update, and other QoS update

16 Jun 04:28
Compare
Choose a tag to compare

Fixing RCON bugs and functionality and other QoS updates.

  • Now shows newly updated interval when changing autosave interval.
  • Autosave loop now pauses if detects server is unreachable and resumes when back online, by utilizing new server_active boolean.
  • New server_active variable, this is mostly for when using RCON. If you try sending multiple commands to an unreachable RCON server, the bot will be held up for a while trying to constantly connect. So this variable will let the bot know if it's active or not.
    • Only ?check and ?stats will actually check server status, and if found active will update server_active boolean so the other commands will work.
  • mc_command is now server_command, will also check if server status and update server_active accordingly.
    • Also, removed bot_ctx parameter.
  • New ?check command can check if server is active and reachable.
  • New ?setchannel and ?resetchannel functions to set channel_id variable so bot can message without a ctx.
  • Did some code cleanup, docstring updates, refactoring, and renaming functions to make it less confusing, and moved some functions to new extra_functions.py file.