3 Commits
v2.2 ... v2.3

Author SHA1 Message Date
c1ee1b50ab Added config check and updated version to 2.3 2023-05-07 16:39:48 +02:00
7a379cf97e Updated ignore 2023-05-07 16:38:46 +02:00
388e27fdff config.json is now config_example.json 2023-05-07 16:38:17 +02:00
4 changed files with 19 additions and 9 deletions

7
.gitignore vendored
View File

@@ -164,3 +164,10 @@ cython_debug/
# Built Visual Studio Code Extensions
*.vsix
# Project
venv
venv_linux
venv_windows
config.json

View File

@@ -26,8 +26,9 @@ Installation instructions are listed below. Please, make sure you have installed
1. `git clone https://git.end-play.xyz/profitroll/YusarinBot`
2. `cd YusarinBot`
3. `pip install -r requirements.txt`
4. `nano config.json`
5. `python yusarin.py`
4. `cp config_example.json config.json`
5. `nano config.json`
6. `python yusarin.py`
## Installation (Detailed)
@@ -42,9 +43,10 @@ Installation instructions are listed below. Please, make sure you have installed
9. You can rename it however you want, set needed descriptions etc
10. Go to "Bot" tab and enable application as bot
11. Copy token of your bot
12. Open file `config.json` with your favorite text editor and paste your token as value of "bot_token" key
13. Copy your own Discord ID and paste it as value of "owner" key (How to get ID: <https://support.playhive.com/discord-user-id/>)
14. Bot is ready! Run it using `python yusarin.py`
12. Copy `config_example.json` to `config.json`
13. Open file `config.json` with your favorite text editor and paste your token as value of "bot_token" key
14. Copy your own Discord ID and paste it as value of "owner" key (How to get ID: <https://support.playhive.com/discord-user-id/>)
15. Bot is ready! Run it using `python yusarin.py`
## Config explanation

View File

@@ -7,15 +7,16 @@ except Exception as exp:
)
exit()
from os import getpid
from os import getpid, path
from functions import *
pid = getpid()
version = 2.2
version = 2.3
if (
loadJson("config.json")["owner"] == "SET-OWNER-ID"
not path.exists("config.json")
or loadJson("config.json")["owner"] == "SET-OWNER-ID"
or loadJson("config.json")["bot_token"] == "SET-BOT-TOKEN"
):
print(