-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathromanceBreaker.py
37 lines (32 loc) · 1.56 KB
/
romanceBreaker.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 RomanceBreaker user guide\nPlease refer to the Github page for detailed setup instructions")
print("\nList of commands:\nwhatsapp or -w ---> launches RomanceBreaker in WhatsApp mode\nmessenger or -m ---> launches RomanceBreaker in Messenger mode\nsms or -s ---> launches RomanceBreaker in SMS mode\ntelegram or -t ---> launches RomanceBreaker in Telegram mode")
print("help or -h or man ---> Launches user guide\nupdate ---> Updates RomanceBreaker from the github repo")
try:
if str(sys.argv[1]) == "whatsapp" or str(sys.argv[1]) == "-w":
print("WHATSAPP MODE")
os.system("{}whatsappRB.py" .format(command))
elif str(sys.argv[1]) == "messenger" or str(sys.argv[1]) == "-m":
print("MESSENGER MODE")
os.system("{}messengerRB.py" .format(command))
elif str(sys.argv[1]) == "sms" or str(sys.argv[1]) == "-s":
print("SMS MODE")
os.system("{}smsRB.py" .format(command))
elif str(sys.argv[1]) == "telegram" or str(sys.argv[1]) == "-t":
print("TELEGRAM MODE")
os.system("{}telegramRB.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 {} romanceBreaker.py -h to show the list of commands" .format(command))