-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathchristmasSpiritBreaker.py
37 lines (32 loc) · 1.53 KB
/
christmasSpiritBreaker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/python3
import sys
import os
import config
command = "python"
if config.currentOS is "Linux":
command += "3 src/"
else:
command += " src\\"
def prnthelp():
print("Welcome to the Christmas Spirit Breaker user guide\nPlease refer to the Github page for detailed setup instructions")
print("\nList of commands:\nwhatsapp or -w ---> launches CSB in WhatsApp mode\nmessenger or -m ---> launches CSB in Messenger mode\nsms or -s ---> launches CSB in SMS mode\ntelegram or -t ---> launches CSB in Telegram mode")
print("help or -h or man ---> Launches user guide\nupdate ---> Updates CSB from the github repo")
try:
if str(sys.argv[1]) == "whatsapp" or str(sys.argv[1]) == "-w":
print("WHATSAPP MODE")
os.system("{}whatsappCSB.py" .format(command))
elif str(sys.argv[1]) == "messenger" or str(sys.argv[1]) == "-m":
print("MESSENGER MODE")
os.system("{}messengerCSB.py" .format(command))
elif str(sys.argv[1]) == "sms" or str(sys.argv[1]) == "-s":
print("SMS MODE")
os.system("{}smsCSB.py" .format(command))
elif str(sys.argv[1]) == "telegram" or str(sys.argv[1]) == "-t":
print("TELEGRAM MODE")
os.system("{}telegramCSB.py" .format(command))
elif str(sys.argv[1]) == "help" or str(sys.argv[1]) == "-h" or str(sys.argv[1]) == "man":
prnthelp()
elif str(sys.argv[1]) == "update":
os.system("git pull")
except:
print("Invalid arguments\nTry running {} christmasSpiritBreaker.py -h to show the list of commands" .format(command))