Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a37c2ee1d7 | ||
|
|
449df672b5 | ||
|
|
d3b8c4f821 | ||
|
|
acbd0e5ad1 |
@@ -583,14 +583,16 @@ class FlanaBot(MultiBot, ABC):
|
||||
- flanautils.CommonWords.words
|
||||
)
|
||||
if not place_words:
|
||||
await self.send_error(random.choice(('¿Tiempo dónde?', 'Indica el sitio.', 'Y el sitio?', 'y el sitio? me lo invento?')), message)
|
||||
if not message.is_inline:
|
||||
await self.send_error(random.choice(('¿Tiempo dónde?', 'Indica el sitio.', 'Y el sitio?', 'y el sitio? me lo invento?')), message)
|
||||
return
|
||||
|
||||
if 'calle' in original_text_words:
|
||||
place_words.insert(0, 'calle')
|
||||
place_query = ' '.join(place_words)
|
||||
if len(place_query) >= constants.MAX_PLACE_QUERY_LENGTH:
|
||||
await self.send_error(Media('resources/mucho_texto.png'), message)
|
||||
if not message.is_inline:
|
||||
await self.send_error(Media('resources/mucho_texto.png'), message)
|
||||
return
|
||||
if show_progress_state:
|
||||
bot_state_message = await self.send(f'Buscando "{place_query}" en el mapa 🧐...', message)
|
||||
|
||||
@@ -5,6 +5,7 @@ asgiref==3.4.1
|
||||
async-generator==1.10
|
||||
async-timeout==3.0.1
|
||||
attrs==21.4.0
|
||||
beautifulsoup4==4.10.0
|
||||
certifi==2021.10.8
|
||||
cffi==1.15.0
|
||||
chardet==4.0.0
|
||||
@@ -23,6 +24,7 @@ h11==0.12.0
|
||||
hachoir==3.1.2
|
||||
idna==3.3
|
||||
iso8601==1.0.2
|
||||
jellyfish==0.9.0
|
||||
kaleido==0.2.1
|
||||
mpmath==1.2.1
|
||||
multibot
|
||||
|
||||
0
tests/unit/__init__.py
Normal file
0
tests/unit/__init__.py
Normal file
@@ -2,7 +2,7 @@ import os
|
||||
|
||||
import flanautils
|
||||
|
||||
os.environ |= flanautils.find_environment_variables('../../.env')
|
||||
os.environ |= flanautils.find_environment_variables('../.env')
|
||||
|
||||
import unittest
|
||||
from typing import Iterable
|
||||
|
||||
Reference in New Issue
Block a user