Added Splash Screen

This commit is contained in:
Alex Orid 2021-01-21 09:26:34 -05:00
parent ba7b959da1
commit fa01586350
4 changed files with 23 additions and 1 deletions

View File

@ -114,3 +114,7 @@ slurList = ("fag", "faggot", "niga", "nigga", "nigger", "retard", "tard", "rtard
currentSpeaker = Speaker.GOOGLE_TEXT_TO_SPEECH currentSpeaker = Speaker.GOOGLE_TEXT_TO_SPEECH
fileNameStrategy = FileNameStrategy.CONTENT_BASED fileNameStrategy = FileNameStrategy.CONTENT_BASED
streamlabsVoice = PollyVoices.Justin streamlabsVoice = PollyVoices.Justin
skip_splashScreen = False
skip_splashScreenClear = False
skip_splashScreenSleep = False

View File

@ -57,6 +57,8 @@ def test_module_init(dbCert, Empty):
def thread_main(): def thread_main():
if not config.skip_splashScreen:
utility.splashScreen()
global credentials_manager global credentials_manager
global twitchModule_ global twitchModule_
global discordModule_ global discordModule_

View File

@ -7,4 +7,5 @@ numpy
gTTS gTTS
playsound playsound
discord.py discord.py
psutil psutil
art

View File

@ -1,8 +1,12 @@
from asyncio.tasks import sleep
import os import os
import sys import sys
import psutil import psutil
import subprocess import subprocess
import platform import platform
import time
import config as config
import art
clearScreen = lambda: os.system('cls' if os.name == 'nt' else 'clear') clearScreen = lambda: os.system('cls' if os.name == 'nt' else 'clear')
@ -38,6 +42,17 @@ def launch_target(inputScript: str):
cmd = "start cmd /k python " + inputScript cmd = "start cmd /k python " + inputScript
os.system(cmd) os.system(cmd)
def splashScreen():
if not config.skip_splashScreenClear:
clearScreen()
art.tprint("----------",font="slant")
art.tprint("Praxis Bot",font="graffiti")
art.tprint("----------",font="slant")
print("-Maintained by Alex Orid The Curious Nerd\nFor help vist discord.gg/thecuriousnerd")
for x in range(0, 5):
print("")
if not config.skip_splashScreenSleep:
time.sleep(3)
if __name__ == "__main__": if __name__ == "__main__":
#pass #pass