From cae2df958e4fd809c16557e5475db5ff30fc8b66 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Sat, 25 Sep 2021 03:14:48 -0600 Subject: Update a bit the readme --- README.md | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 29cef2b..98fd571 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,46 @@ -# ValheimPlus-Discord_Bot -Valheim Plus discord bot based off of [ckbaudio's valheim-discord-bot](https://github.com/ckbaudio/valheim-discord-bot) +# Valheim Discord Bot + +![](img/vhb_banner.png) + +Based off of [stolenvw's ValheimPlus-Discord_Bot](https://github.com/stolenvw/ValheimPlus-Discord_Bot) which in turn is based off of [ckbaudio's valheim-discord-bot](https://github.com/ckbaudio/valheim-discord-bot). Includes support for Valheim Plus. + +I'm keeping the original assets and art, all credits go to [ckbaudio](https://github.com/ckbaudio). ## Setup: -**Working MySQL server is needed for this bot.** -`table_info.sql` Has Table info for the database -`pip install -r requirements.txt` To install Pyhton requirements. -## [config.py](code/config.py) +- **Working MySQL server is needed for this bot**. + - `table_info.sql` has table info for the database. +- Install requirements via `pip install -r requirements.txt`. +- The script is intended to run on the same server as the game host for uninterrupted access to server logs. + - Logs can be invoked on a dedicated valheim server by passing the `-logfile` flag. + +### [config.py](code/config.py) + Edit this file with your info. Setting should be self-explanitory. -Add `-logfile /location/to/file.log` to your start command to get a logfile. +**Warning:** Using the `BepInEx/LogOutput.log` file will not work. -**Warning:** Using the `BepInEx/LogOutput.log` file will not work +For `WORLDSIZE` user running the bot must have read permissions to the world.db.old file. -For `WORLDSIZE` user running the bot must have read permissions to the world.db.old file +### [dbsetup.py](code/dbsetup.py) -## [dbsetup.py](code/dbsetup.py) Tables and data for the MySQL database. -**Warning: Set up the config.py before running this** +**Warning: Set up the `config.py` before running this**. Run `python3 dbsetup.py` from the code dir to create tables. ## Usage: -`python3 plusbot.py` While in the `code` dir. -`nohup python3 plusbot.py &` Too run in background. -Or you can create a service to run `plusbot.py` under systemd -**help** Shows available commands +`python3 plusbot.py` while in the `code` dir. + +`nohup python3 plusbot.py &` Too run in background, or you can create a service to run `plusbot.py` under systemd. + +**help** shows available commands. ## [Optional:](optional) -Check the optional dir for addons -### Example Output: -![](example/example.png) +Check the optional dir for addons. + +## Example Output: -## Changes: -- March 4, 2021: Major rewrite +![](img/example.png) -- cgit v1.2.3