Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import emoji
import requests
import flag
def language():
while True:
LanguageChoice=input("1 for english:\n"
"2 für deutsch bitte deutsch eingeben:\n" # user choosing language
"3 dla języka polskiego proszę wprowadzić polski:\n")
if LanguageChoice == "1":
print("you have chosen english") # bot talking to user
x1 = input("hi my name is eggy whats your name?:\n")
x2=x1.replace("my name is",'')
print("hello "+x2 +" nice to meet you!",)
while True:
print("if you want me to ask you questions to figure out the news your interested in press 1 else to choose by yourself press 2") #if user wants to choose news on their own or let the bot suggest
x3=input()
if x3=="1":
import human
elif x3=="2":
while True:
MenuChoice = input("please input what type of news you would like to check today\n 1.wheather\n 2.sports\n 3.tech \n 4.HOT NEWS!:\n5.facts!\n") # user choosing type of news
if MenuChoice == "1":
import whether
elif MenuChoice == "2":
import renewed
elif MenuChoice == "3":
import maintechNews
elif MenuChoice == "4":
import HotNews
elif MenuChoice == "5":
import Factfunction2
else:
print("sorry i dont understnad please try again")#if news not available a message is outputted
continue
else:
print("please choose one of the options available")#if options not available a meessage is outputted
continue
elif LanguageChoice == "2":
print("du hast deutsch gewählt")# german language
x1 = input("hi my name is eggy whats your name?:\n")
print("hello " + x1 + " nice to meet you!", )
while True:
MenuChoice = input("please input what type of news you would like to check today\n 1.wheather\n 2.sports\n 3.tech \n 4.HOT NEWS!:\n 5.facts!\n")
if MenuChoice == 1:
"weather.py()"
elif MenuChoice == 2:
"sports.py()"
elif MenuChoice == 3:
"tech.py()"
elif MenuChoice == 4:
"hotnews.py()"
elif MenuChoice == 5:
".py()"
else:
print("sorry i dont understnad please try again")
continue
elif LanguageChoice == "3": # not finished due to lack of time function wouldbe copy of english code but in polish langauge
print("wybrałeś polski")#polish language
x1 = input("hi my name is eggy whats your name?:\n")
print("hello " + x1 + " nice to meet you!", )
while True:
MenuChoice = input(
"please input what type of news you would like to check today\n 1.wheather\n 2.sports\n 3.tech \n 4.HOT NEWS!:\n5.facts!\n")
if MenuChoice == 1:
"weather.py()"
elif MenuChoice == 2:
"sports.py()"
elif MenuChoice == 3:
"tech.py()"
elif MenuChoice == 4:
"hotnews.py()"
elif MenuChoice == 5:
".py()"
else:
print("sorry i dont understnad please try again")
continue
else:
print("sorry No Language found please try again")
continue
print(language())