Compare commits
15 Commits
Author | SHA1 | Date |
---|---|---|
Profitroll | 5c5a620d65 | |
Renovate | 1c05efa0f4 | |
Profitroll | f5de2457ba | |
Renovate | 8cec182435 | |
Profitroll | ad0ab65c5d | |
Profitroll | 0029cdaa30 | |
Profitroll | e94883f6ad | |
Renovate | 465838a196 | |
Profitroll | a059fb0518 | |
Renovate | c4ee74753b | |
Profitroll | 492edc242f | |
Renovate | 66c0ad7ee8 | |
Profitroll | c1ee1b50ab | |
Profitroll | 7a379cf97e | |
Profitroll | 388e27fdff |
|
@ -163,4 +163,11 @@ cython_debug/
|
|||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
*.vsix
|
||||
|
||||
# Project
|
||||
venv
|
||||
venv_linux
|
||||
venv_windows
|
||||
|
||||
config.json
|
16
README.md
16
README.md
|
@ -4,8 +4,8 @@
|
|||
<a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html">
|
||||
<img alt="License: GPL v2" src="https://img.shields.io/badge/License-GPL_v2-blue.svg">
|
||||
</a>
|
||||
<a href="https://crowdin.com/project/yusarinbot">
|
||||
<img alt="Crowdin" src="https://badges.crowdin.net/yusarinbot/localized.svg">
|
||||
<a href="https://weblate.end-play.xyz/engage/yusarinbot/">
|
||||
<img src="https://weblate.end-play.xyz/widget/yusarinbot/svg-badge.svg" alt="Translation status" />
|
||||
</a>
|
||||
<a href="https://git.end-play.xyz/profitroll/YusarinBot">
|
||||
<img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg">
|
||||
|
@ -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
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
ujson==5.7.0
|
||||
py-cord[speed]==2.4.1
|
||||
ujson==5.9.0
|
||||
py-cord[speed]==2.5.0
|
|
@ -1,2 +1,2 @@
|
|||
py-cord==2.4.1
|
||||
requests==2.29.0
|
||||
py-cord==2.5.0
|
||||
requests==2.31.0
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue