Update 1.6
This commit is contained in:
parent
9b138781a6
commit
78a845a99b
@ -4,10 +4,10 @@ Simple, easy to set up, yet reliable.
|
|||||||
A specially designed bot for creating private voice channels on your Discord servers.
|
A specially designed bot for creating private voice channels on your Discord servers.
|
||||||
Installation instructions are listed below. Please, make sure you have installed dependencies before opening issue here.
|
Installation instructions are listed below. Please, make sure you have installed dependencies before opening issue here.
|
||||||
|
|
||||||
> Since version 1.5 only slash commands are supported. If you'd like to use old-fashioned commands and commands prefix feature – consider installing [1.4 version](https://github.com/profitrollgame/YusarinBot/releases/tag/v1.4) which is the last one compatible with those.
|
> Since version 1.5 only slash commands are supported. If you'd like to use old-fashioned commands and commands prefix feature – consider installing [1.4 version](https://git.end-play.xyz/profitroll/YusarinBot/releases/tag/v1.4) which is the last one compatible with those.
|
||||||
|
|
||||||
## Installation (Short)
|
## Installation (Short)
|
||||||
1. `git clone https://github.com/profitrollgame/YusarinBot`
|
1. `git clone https://git.end-play.xyz/profitroll/YusarinBot`
|
||||||
2. `cd YusarinBot`
|
2. `cd YusarinBot`
|
||||||
3. `pip install -r requirements.txt`
|
3. `pip install -r requirements.txt`
|
||||||
4. `nano config.json`
|
4. `nano config.json`
|
||||||
@ -15,7 +15,7 @@ Installation instructions are listed below. Please, make sure you have installed
|
|||||||
|
|
||||||
## Installation (Detailed)
|
## Installation (Detailed)
|
||||||
1. Download and install Python 3 (3.6+ should be fine)
|
1. Download and install Python 3 (3.6+ should be fine)
|
||||||
2. Download bot's release: https://github.com/profitrollgame/YusarinBot/releases/latest
|
2. Download bot's release: https://git.end-play.xyz/profitroll/YusarinBot/releases/latest
|
||||||
3. Unpack your archive to folder. Name it YusarinBot for example
|
3. Unpack your archive to folder. Name it YusarinBot for example
|
||||||
4. Change working directory using `cd YusarinBot` or `cd FolderYouHaveCreated`
|
4. Change working directory using `cd YusarinBot` or `cd FolderYouHaveCreated`
|
||||||
5. Run `pip install -r requirements.txt` to install dependencies
|
5. Run `pip install -r requirements.txt` to install dependencies
|
||||||
@ -28,7 +28,7 @@ Installation instructions are listed below. Please, make sure you have installed
|
|||||||
12. Bot is ready! Run it using `python yusarin.py`
|
12. Bot is ready! Run it using `python yusarin.py`
|
||||||
|
|
||||||
## Config explanation
|
## Config explanation
|
||||||
Default configuration file is [available here](https://github.com/profitrollgame/YusarinBot/blob/main/config.json)
|
Default configuration file is [available here](https://git.end-play.xyz/profitroll/YusarinBot/blob/main/config.json)
|
||||||
- "debug" - Option that enables more detailed log messages [Boolean]
|
- "debug" - Option that enables more detailed log messages [Boolean]
|
||||||
- "owner" - Discord ID of user who will be able to execute admin commands (`$shutdown` for example) [Integer]
|
- "owner" - Discord ID of user who will be able to execute admin commands (`$shutdown` for example) [Integer]
|
||||||
- "bot_name" - Name of your bot. Is not used anywhere yet [String]
|
- "bot_name" - Name of your bot. Is not used anywhere yet [String]
|
||||||
|
@ -14,17 +14,17 @@ except Exception as exp:
|
|||||||
|
|
||||||
from functions import *
|
from functions import *
|
||||||
pid = os.getpid()
|
pid = os.getpid()
|
||||||
version = 1.5
|
version = 1.6
|
||||||
|
|
||||||
if loadJson("config.json")["owner"] == "SET-OWNER-ID" or loadJson("config.json")["bot_token"] == "SET-BOT-TOKEN":
|
if loadJson("config.json")["owner"] == "SET-OWNER-ID" or loadJson("config.json")["bot_token"] == "SET-BOT-TOKEN":
|
||||||
print(f"Bot is not correctly configured.\nMake sure you've set up owner id and bot token in {path}/config.json\nLearn more here: https://github.com/profitrollgame/YusarinBot")
|
print(f"Bot is not correctly configured.\nMake sure you've set up owner id and bot token in {path}/config.json\nLearn more here: https://git.end-play.xyz/profitroll/YusarinBot")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
if loadJson("config.json")["check_for_updates"]:
|
if loadJson("config.json")["check_for_updates"]:
|
||||||
try:
|
try:
|
||||||
serv_ver = json.loads(requests.get("https://api.end-play.xyz/version&apikey=publickey&app=yusarinbot").text)["version"]
|
serv_ver = json.loads(requests.get("https://api.end-play.xyz/version&apikey=publickey&app=yusarinbot").text)["version"]
|
||||||
if float(serv_ver) > version:
|
if float(serv_ver) > version:
|
||||||
appendLog(f"YusarinBot version {serv_ver} is available. Download new version here: https://github.com/profitrollgame/YusarinBot/releases/latest")
|
appendLog(f"YusarinBot version {serv_ver} is available. Download new version here: https://git.end-play.xyz/profitroll/YusarinBot/releases/latest")
|
||||||
appendLog(f"Currently using YusarinBot v{str(version)}")
|
appendLog(f"Currently using YusarinBot v{str(version)}")
|
||||||
except Exception as exp:
|
except Exception as exp:
|
||||||
appendLog(f"Could not get YusarinBot cloud version due to {exp}. Currently using {str(version)}")
|
appendLog(f"Could not get YusarinBot cloud version due to {exp}. Currently using {str(version)}")
|
||||||
|
Loading…
Reference in New Issue
Block a user