-
Notifications
You must be signed in to change notification settings - Fork 0
/
play.py
41 lines (26 loc) · 779 Bytes
/
play.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
38
39
40
41
import os
import privInfo
faucet_lyrics = open('faucet.txt', 'r')
x = faucet_lyrics.readlines()
for line in x:
lines = line.split()
for word in lines:
os.system('osascript send.scpt {} "{}"'.format(privInfo.wyatt, word))
#print("124, ", word)
# def get_lines(file_path):
# with open(file_path, 'r') as f:
# text = f.readlines()
# return text
# def get_words(file_path):
# with open(file_path, 'r') as f:
# text = f.readlines()
# for x in text:
# words = text.rsplit('\n')
# return words
# def send_message(phone_number, message):
# os.system('osascript send.scpt {} "{}"'.format(phone_number, message))
# if __name__ == "__main__":
# text = get_lines('faucet.txt')
# print(text)
# # for line in text:
# # send_message(config.FRIEND2, line)