Releases: 0n1udra/slime_server
Releases · 0n1udra/slime_server
v9.0 The big class-ification revamp update!
v6.0 Discord 2.0 Update!
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/)
. Useswatch
andtail
commands. - Able to filter chat logs now with keywords. E.g.
?chatlog minecraft is awesome
. Searcheslatest.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
unlessuse_rcon = True
inslime_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
- 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.
- 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 ofserver_log()
func. (7b4a682) - Added/Updated some docstrings/comments.
v5.3 QoS and bug fix update
- 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
- 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 toslime_vars.py
to activate a python env before starting the Discord bot (if using one). Set this toNone
if not using one.
v5.0 BUTTONS! Control panels, and more!
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
- Removed redundant Fetching Server Stats... message from serverstatus command.
- Any tmux related functionality now uses
tmux_session_name
variable, which can be changed inslime_vars.py
. - Removed
extra_functions.py
file and contents toserver_functions.py
.
v4.1.1 Small fixes
- 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
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 updateserver_active
boolean so the other commands will work.
- Only
mc_command
is nowserver_command
, will also check if server status and updateserver_active
accordingly.- Also, removed
bot_ctx
parameter.
- Also, removed
- New
?check
command can check if server is active and reachable. - New
?setchannel
and?resetchannel
functions to setchannel_id
variable so bot can message without actx
. - 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.