Skip to content
Permalink
Browse files
Update lunaweifinal.py
  • Loading branch information
leaom2 committed Dec 10, 2018
1 parent 6746aba commit 084cf4e1b3ed1e2435652711e05d419b0465ce36
Showing 1 changed file with 4 additions and 4 deletions.
@@ -82,10 +82,13 @@ badEM = ["I am bad", "I am sad", "I am depressed", "I am not well", "I am annoye
goodMood = ["I am happy that you're fine", "I am happy for you", "That'a lovely!", "That's amazing"]
badMood = ["I'm sad to hear that", "I'm sorry for you", "Don't worry, be happy!", "Think positive"]

# Cities for the weather requests
cities = ["London", "Coventry", "Lisbon", "Seoul"]

help = str("Hello, the /help command gives you basic instructions on how to use LunaWei. \U0001F4D6\n /start - start the bot\n /weather - give information about the weather \n /calculator - solve simple math calculations\n /joke - tell you a joke\n /fact tell you a fact\n /music - some of my favourite songs! \U0001F60B \n /inline - List of all the amazing inline bots " )


# Lambda functions to parse updates from telegram | lambda function - small anonymous function, can take any number of arguments
# Lambda functions to parse updates from telegram
def getText(update):
return update["message"]["text"]

@@ -122,9 +125,6 @@ def getCity(w):
logger = logging.getLogger("LunaBot")
logger.setLevel(logging.DEBUG)

# Cities for the weather requests
cities = ["London", "Coventry", "Lisbon", "Seoul"]


# Configure file and console logging
def configLogging():

0 comments on commit 084cf4e

Please sign in to comment.