Remove legacy msg.text

This commit is contained in:
nemunaire 2017-07-18 06:48:15 +02:00 committed by nemunaire
commit e70a7f4fe0
7 changed files with 38 additions and 17 deletions

View file

@ -203,7 +203,7 @@ gps_ask = re.compile(r"^\s*(?P<city>.*\w)\s*(?:(?:se|est)\s+(?:trouve|situ[ée]*
@hook.ask()
def parseask(msg):
res = gps_ask.match(msg.text)
res = gps_ask.match(msg.message)
if res is not None:
city_name = res.group("city").lower()
gps_lat = res.group("lat").replace(",", ".")