Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9e61b296d | ||
|
|
35583088ab | ||
|
|
73f2d4c485 | ||
|
|
a8cf321140 | ||
|
|
944e473fac | ||
|
|
f4ffa40263 |
@@ -312,7 +312,7 @@ class FlanaBot(MultiBot, ABC):
|
||||
return_exceptions=True
|
||||
)
|
||||
|
||||
if self.is_bot_mentioned(message) or not message.chat.is_group:
|
||||
if not message.is_inline and (self.is_bot_mentioned(message) or not message.chat.is_group):
|
||||
while not results.done():
|
||||
if constants.SCRAPING_MESSAGE_WAITING_TIME <= time.perf_counter() - start_time:
|
||||
bot_state_message = await self.send(random.choice(constants.SCRAPING_PHRASES), message)
|
||||
|
||||
@@ -96,8 +96,8 @@ KEYWORDS = {
|
||||
'cloudless', 'cloudy', 'cold', 'congelar', 'congelado', 'denbora', 'despejado', 'diluvio', 'frio',
|
||||
'frost', 'hielo', 'humedad', 'llover', 'llueva', 'llueve', 'lluvia', 'nevada', 'nieva', 'nieve',
|
||||
'nube', 'nubes', 'nublado', 'meteorologia', 'rain', 'snow', 'snowfall', 'snowstorm', 'sol',
|
||||
'solano', 'storm', 'sun', 'temperatura', 'tempo', 'tiempo', 'tormenta', 've', 'ventisca',
|
||||
'weather', 'wetter')
|
||||
'solano', 'storm', 'sun', 'temperatura', 'tempo', 'tiempo', 'tormenta', 'ventisca', 'weather',
|
||||
'wetter')
|
||||
}
|
||||
|
||||
RECOVER_PHRASES = (
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import asyncio
|
||||
import os
|
||||
|
||||
import flanautils
|
||||
|
||||
os.environ |= flanautils.find_environment_variables('../.env')
|
||||
|
||||
import asyncio
|
||||
|
||||
from flanabot.bots.flana_tele_bot import FlanaTeleBot
|
||||
|
||||
|
||||
async def main():
|
||||
os.environ |= flanautils.find_environment_variables('../.env')
|
||||
|
||||
flana_tele_bot = FlanaTeleBot()
|
||||
|
||||
await asyncio.gather(
|
||||
|
||||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Reference in New Issue
Block a user