Remove legacy msg.text
This commit is contained in:
parent
a29325cb19
commit
e70a7f4fe0
7 changed files with 38 additions and 17 deletions
|
|
@ -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(",", ".")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue