from time import sleep
from py_imessage import imessage
from num import num

# Get words from lyrics text
def get_lyrics():
    with open('lyrics.txt') as file:
        list = [line.strip() for line in file]
        string = " ".join(list) # join the two lists
        return string

# Turn text into list of words
def get_words(lyrics_str):
    return lyrics_str.split()

# Loop through words
def send_messages(phone_number, messages):
    # Loop through all messages and turn into message
    for message in messages:
        send_message(phone_number, message)
        sleep(.5)

# Function to Send message
# Open iMessage Client
def send_message(phone_number, message):
    imessage.send(phone_number, message)

def get_lyrics_and_send_messages(phone_number, lyrics):
    words_list = get_words(lyrics)
    send_messages(phone_number, words_list)

get_lyrics_and_send_messages(num, get_lyrics())

4801b539119d819dbf6b1c9cb0906cc0e1cd431c
<mask token>


def get_lyrics():
    with open('lyrics.txt') as file:
        list = [line.strip() for line in file]
        string = ' '.join(list)
        return string


def get_words(lyrics_str):
    return lyrics_str.split()


def send_messages(phone_number, messages):
    for message in messages:
        send_message(phone_number, message)
        sleep(0.5)


<mask token>

<mask token>


def get_lyrics():
    with open('lyrics.txt') as file:
        list = [line.strip() for line in file]
        string = ' '.join(list)
        return string


def get_words(lyrics_str):
    return lyrics_str.split()


def send_messages(phone_number, messages):
    for message in messages:
        send_message(phone_number, message)
        sleep(0.5)


def send_message(phone_number, message):
    imessage.send(phone_number, message)


def get_lyrics_and_send_messages(phone_number, lyrics):
    words_list = get_words(lyrics)
    send_messages(phone_number, words_list)


<mask token>

<mask token>


def get_lyrics():
    with open('lyrics.txt') as file:
        list = [line.strip() for line in file]
        string = ' '.join(list)
        return string


def get_words(lyrics_str):
    return lyrics_str.split()


def send_messages(phone_number, messages):
    for message in messages:
        send_message(phone_number, message)
        sleep(0.5)


def send_message(phone_number, message):
    imessage.send(phone_number, message)


def get_lyrics_and_send_messages(phone_number, lyrics):
    words_list = get_words(lyrics)
    send_messages(phone_number, words_list)


get_lyrics_and_send_messages(num, get_lyrics())

from time import sleep
from py_imessage import imessage
from num import num


def get_lyrics():
    with open('lyrics.txt') as file:
        list = [line.strip() for line in file]
        string = ' '.join(list)
        return string


def get_words(lyrics_str):
    return lyrics_str.split()


def send_messages(phone_number, messages):
    for message in messages:
        send_message(phone_number, message)
        sleep(0.5)


def send_message(phone_number, message):
    imessage.send(phone_number, message)


def get_lyrics_and_send_messages(phone_number, lyrics):
    words_list = get_words(lyrics)
    send_messages(phone_number, words_list)


get_lyrics_and_send_messages(num, get_lyrics())

from time import sleep
from py_imessage import imessage
from num import num

# Get words from lyrics text
def get_lyrics():
    with open('lyrics.txt') as file:
        list = [line.strip() for line in file]
        string = " ".join(list) # join the two lists
        return string

# Turn text into list of words
def get_words(lyrics_str):
    return lyrics_str.split()

# Loop through words
def send_messages(phone_number, messages):
    # Loop through all messages and turn into message
    for message in messages:
        send_message(phone_number, message)
        sleep(.5)

# Function to Send message
# Open iMessage Client
def send_message(phone_number, message):
    imessage.send(phone_number, message)

def get_lyrics_and_send_messages(phone_number, lyrics):
    words_list = get_words(lyrics)
    send_messages(phone_number, words_list)

get_lyrics_and_send_messages(num, get_lyrics())
