Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,18 @@ def Loading(): #LOADING

def Title(): # TITLE INTRO
global Platform
#Loading()
Title = ['⌠☒☒☯☢◙◙▒▒▒▓▓▓▓▓████▓▓▓▓▓▒▒▒◙◙☢☯☒☒╖','╫ ╫','║ ⌠◙┐ ⌠◙\ /◙┐ ⌠◙▒▓☒\ ⌠◙┐ ⌠◙█☒╖ ║','│ │▒║ \▓∨▓/ │▒┌╤\▒ │█║ │▓║☢║▓╖ │','☯ ║▓║ ║▓╫ ║▓╫☯╫▓ ║▓▒ ║█▒▓▒█║ ☯','│ │▒└__ │▓║ │▒└╧/▒ │█╫ │█╫ ║█╫ │','║ ⌡◙▒▓▒ ⌡█╝ ⌡◙▒▓☒/ ⌡◙╝ ⌡▒╝ └▒╝ ║','╫ ¯¯¯¯¯ ¯¯¯ ¯¯¯¯¯ ¯¯¯ ¯¯¯ ¯¯ ╫','⌡☒☒☯☢◙◙▒▒▒▓▓▓▓▓████▓▓▓▓▓▒▒▒◙◙☢☯☒☒╝']
for x in Title:
for y in x:
print(y,end="")
print('')

print("\n By Captain Pi and EBz")
print(" Version 0.0.1")
print(" running on: ",Platform,'\n')
return True

def Update():#UPDATE FILES
global Names,jokeList,feelingsList
global Names,jokeList,feelingsList,factlist
Names = []
jokeList = []
feelingsList = []
factlist = []
#Names
try:
file = open('Names.txt','r')
Expand Down Expand Up @@ -69,11 +65,22 @@ def Update():#UPDATE FILES
file = open('feelings.txt','r')
for line in file:
feelingsList.append(line.replace('\n',''))
print(feelingsList)

#Factlist
try:
file = open('randomfacts.txt','r')
except FileNotFoundError:
file = open('randomfacts.txt','w')
file.close()
file = open('randomfacts.txt','r')
for line in file:
factlist.append(line.replace('\n',''))
print(factlist)


def Question(): #AI QUESTIONS
global jokeList
X = str(input("Ask me a question\n: "))
global jokeList,FeelingsList,factlist
X = str(input("What would you like?\n: "))
file = open('Symbols.txt','r')
for symbol in file:
symbol = symbol.replace('\n','')
Expand Down Expand Up @@ -101,7 +108,15 @@ def Question(): #AI QUESTIONS
print('My name is Lydia')
elif x == 'joke':
print(choice(jokeList))
counter += 1
counter += 1
elif x == 'feeling':
if Words[counter-1] == 'you':
print("I am feeling",choice(feelingsList))

elif x == 'fact':
if Words[counter-1] == 'a':
print ("Here is a fact:",choice(factlist))
counter +=1

def Name(option): #NAMES
global Names,ID
Expand Down