Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
c1ee1b50ab | |||
7a379cf97e | |||
388e27fdff |
9
.gitignore
vendored
9
.gitignore
vendored
@@ -163,4 +163,11 @@ cython_debug/
|
||||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
*.vsix
|
||||
|
||||
# Project
|
||||
venv
|
||||
venv_linux
|
||||
venv_windows
|
||||
|
||||
config.json
|
12
README.md
12
README.md
@@ -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
|
||||
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user