-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
057eba6
commit dd71e51
Showing
4 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
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,6 +1,19 @@ | ||
# import uvloop # Comment it out if using on windows | ||
import os | ||
from platform import system | ||
|
||
from Powers import LOGGER | ||
from Powers.bot_class import Gojo | ||
|
||
if __name__ == "__main__": | ||
# uvloop.install() # Comment it out if using on windows | ||
if system() == "Windows": | ||
LOGGER.info("Windows system detected thus not installing uvloop") | ||
else: | ||
LOGGER.info("Attempting to install uvloop") | ||
try: | ||
os.system("pip3 install uvloop==0.19.0") | ||
import uvloop | ||
uvloop.install() | ||
LOGGER.info("Installed uvloop continuing the process") | ||
except: | ||
LOGGER.info("Failed to install uvloop continuing the process") | ||
Gojo().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
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
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