https://github.com/seanpray/hypnos_core
session management via discord
https://github.com/seanpray/hypnos_core
Last synced: about 1 month ago
JSON representation
session management via discord
- Host: GitHub
- URL: https://github.com/seanpray/hypnos_core
- Owner: seanpray
- License: gpl-3.0
- Created: 2021-12-16T22:41:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-20T22:10:33.000Z (over 3 years ago)
- Last Synced: 2025-03-29T02:52:17.615Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 5.94 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Hypnos Core
session manager written in rust 🚀
Hypnos Core is an attempt to create a server managment tool in the form of a discord bot, it has many features geared towards Minecraft, however, it is very flexible and can be adapted for any game server using a command line interface.
The bot is called a session manager, this is because the bot interfaces with tmux sessions to do a lot of it's work, this allows it greater flexibility than most bots. It can execute anything a user would normally execute.
I was unhappy with the other chat bots that existed for Minecraft, so I decided to make my own using a much more flexible and versatile idea.
This code was made to run on my server, and I obviously cannot ensure that it will function as intended for anyone else. This code is very messy, if you have any pointers for improvement please let me know.
#### installation
This is not intended for anyone else to use in it's current state
if you still wish to mess around with it, it is recommended you have [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) installed
ensure that you have `tar`, `tmux`, and `git`, this was only tested on linux, however, any *nix based system should support it, and wsl2 for windows should also function fine.
```
$ mkdir -p hypnos_core/build
$ cd hypnos_core/build
$ git clone [email protected]:NotCreative21/hypnos_core.git
$ cd hypnos_core
$ cargo run --release reset-cfg
$ cp target/release/hypnos_core ../..
$ cp hypnos_core.conf ../..
$ cd ../..
$ ./hypnos_core
```After these steps, the environment is setup for the recompile command to work and the hypnos_core.conf file can now be filled out.
#### current features
* self-recompiling, can recieve upstream updates and recompile itself
* unified chat bridge between minecraft, discord, and other games
* async code base
* execute in-game commands, shell commands, etc, via discord
* in-game math eval, example: `=4*4` will return `-> 16`
* server monitor, checks server health and warns if there are issues
* backup manager, create, delete, and list backups from discord
* backup scheduler, create backups on intervals
* script scheduler, run any program or script on a configurable timer#### currently under development
* improving reliable recompiling
* region backup system, save/load backups#### future features
* chest searcher per a region
* scoreboard comparison from two different dates
* discord auto mod/ban features
* copies of itself can communicate without discord via tcp streams