Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
BIN
+0 Bytes
(100%)
__pycache__/bot.cpython-36.pyc
Binary file not shown.
BIN
+715 Bytes
__pycache__/librarySetup.cpython-36.pyc
Binary file not shown.
BIN
+36 Bytes
(100%)
__pycache__/setup.cpython-36.pyc
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def configure(): | ||
|
||
|
||
|
||
configure() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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") | ||
os.system("pip3 install status") | ||
|
||
checkLibraries() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
def run(): | ||
|
||
import librarySetup | ||
librarySetup.checkLibraries() | ||
|
||
import setup | ||
import bot | ||
import online | ||
import os | ||
|
||
|
||
if not os.path.isfile('.env'): | ||
setup.environment() | ||
|
||
os.system("python3 bot.py") | ||
run() |
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