Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
MinecraftDiscord/lib/librarySetup.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
30 lines (27 sloc)
632 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def checkLibraries(): | |
import getpass | |
import os | |
try: | |
os.system("pip3 -V") | |
except: | |
os.system("sudo apt install python3-pip") | |
try: | |
import discord | |
except: | |
try: | |
os.system("python3 -m pip install -U discord.py") | |
except: | |
os.system("py3 -m pip install -U discord.py") | |
try: | |
import mcstatus | |
except: | |
os.system("pip3 install mcstatus") | |
try: | |
import status | |
except: | |
os.system("pip3 install status") | |
try: | |
import dotenv | |
except: | |
os.system("pip3 install python-dotenv") | |
checkLibraries() |